ory-client 1.12.2__py3-none-any.whl → 1.17.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ory_client/__init__.py +16 -3
- ory_client/api/courier_api.py +21 -15
- ory_client/api/events_api.py +38 -26
- ory_client/api/frontend_api.py +1741 -1064
- ory_client/api/identity_api.py +197 -126
- ory_client/api/jwk_api.py +65 -44
- ory_client/api/metadata_api.py +11 -8
- ory_client/api/o_auth2_api.py +292 -191
- ory_client/api/oidc_api.py +68 -45
- ory_client/api/permission_api.py +343 -32
- ory_client/api/project_api.py +516 -145
- ory_client/api/relationship_api.py +56 -38
- ory_client/api/wellknown_api.py +14 -11
- ory_client/api/workspace_api.py +886 -34
- ory_client/api_client.py +71 -32
- ory_client/configuration.py +176 -42
- ory_client/exceptions.py +19 -2
- ory_client/models/__init__.py +15 -2
- ory_client/models/accept_o_auth2_consent_request.py +2 -2
- ory_client/models/accept_o_auth2_consent_request_session.py +2 -2
- ory_client/models/accept_o_auth2_login_request.py +2 -2
- ory_client/models/account_experience_colors.py +329 -0
- ory_client/models/account_experience_configuration.py +35 -13
- ory_client/models/account_experience_theme_variables.py +2 -2
- ory_client/models/active_project_in_console.py +2 -2
- ory_client/models/add_project_to_workspace_body.py +2 -2
- ory_client/models/attribute.py +2 -2
- ory_client/models/attribute_filter.py +2 -2
- ory_client/models/attributes_count_datapoint.py +2 -2
- ory_client/models/authenticator_assurance_level.py +2 -2
- ory_client/models/batch_check_permission_body.py +109 -0
- ory_client/models/batch_check_permission_result.py +109 -0
- ory_client/models/batch_patch_identities_response.py +5 -5
- ory_client/models/billing_period_bucket.py +5 -5
- ory_client/models/check_opl_syntax_result.py +5 -5
- ory_client/models/check_permission_result.py +2 -2
- ory_client/models/check_permission_result_with_error.py +103 -0
- ory_client/models/cloud_account.py +6 -4
- ory_client/models/consistency_request_parameters.py +2 -2
- ory_client/models/continue_with.py +35 -11
- ory_client/models/continue_with_recovery_ui.py +2 -2
- ory_client/models/continue_with_recovery_ui_flow.py +3 -3
- ory_client/models/continue_with_redirect_browser_to.py +110 -0
- ory_client/models/continue_with_set_ory_session_token.py +2 -2
- ory_client/models/continue_with_settings_ui.py +2 -2
- ory_client/models/continue_with_settings_ui_flow.py +7 -5
- ory_client/models/continue_with_verification_ui.py +2 -2
- ory_client/models/continue_with_verification_ui_flow.py +3 -3
- ory_client/models/courier_message_status.py +2 -2
- ory_client/models/courier_message_type.py +2 -2
- ory_client/models/create_custom_domain_body.py +2 -2
- ory_client/models/create_event_stream_body.py +2 -2
- ory_client/models/create_fedcm_flow_response.py +111 -0
- ory_client/models/create_identity_body.py +16 -9
- ory_client/models/create_invite_response.py +5 -5
- ory_client/models/create_json_web_key_set.py +2 -2
- ory_client/models/create_project_api_key_request.py +7 -4
- ory_client/models/create_project_body.py +5 -5
- ory_client/models/create_project_branding.py +2 -2
- ory_client/models/create_project_member_invite_body.py +2 -2
- ory_client/models/create_project_normalized_payload.py +60 -24
- ory_client/models/create_recovery_code_for_identity_body.py +2 -2
- ory_client/models/create_recovery_link_for_identity_body.py +2 -2
- ory_client/models/create_relationship_body.py +2 -2
- ory_client/models/create_subscription_body.py +2 -2
- ory_client/models/create_subscription_common.py +2 -2
- ory_client/models/create_verifiable_credential_request_body.py +2 -2
- ory_client/models/create_workspace_api_key_body.py +104 -0
- ory_client/models/create_workspace_body.py +2 -2
- ory_client/models/create_workspace_member_invite_body.py +16 -7
- ory_client/models/create_workspace_subscription_body.py +2 -2
- ory_client/models/credential_supported_draft00.py +2 -2
- ory_client/models/custom_domain.py +2 -2
- ory_client/models/delete_my_sessions_count.py +2 -2
- ory_client/models/email_template_data.py +2 -2
- ory_client/models/email_template_data_body.py +2 -2
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +2 -2
- ory_client/models/error_browser_location_change_required.py +2 -2
- ory_client/models/error_flow_replaced.py +2 -2
- ory_client/models/error_generic.py +2 -2
- ory_client/models/error_o_auth2.py +2 -2
- ory_client/models/event_stream.py +2 -2
- ory_client/models/expanded_permission_tree.py +5 -5
- ory_client/models/flow_error.py +2 -2
- ory_client/models/generic_error.py +2 -2
- ory_client/models/generic_error_content.py +2 -2
- ory_client/models/generic_usage.py +2 -2
- ory_client/models/get_attributes_count_response.py +5 -5
- ory_client/models/get_managed_identity_schema_location.py +2 -2
- ory_client/models/get_metrics_event_attributes_response.py +2 -2
- ory_client/models/get_metrics_event_types_response.py +2 -2
- ory_client/models/get_organization_response.py +2 -2
- ory_client/models/get_project_events_body.py +5 -5
- ory_client/models/get_project_events_response.py +5 -5
- ory_client/models/get_project_metrics_response.py +5 -5
- ory_client/models/get_session_activity_response.py +5 -5
- ory_client/models/get_version200_response.py +2 -2
- ory_client/models/health_not_ready_status.py +2 -2
- ory_client/models/health_status.py +2 -2
- ory_client/models/identity.py +11 -11
- ory_client/models/identity_credentials.py +5 -5
- ory_client/models/identity_credentials_code.py +14 -14
- ory_client/models/identity_credentials_code_address.py +103 -0
- ory_client/models/identity_credentials_oidc.py +5 -5
- ory_client/models/identity_credentials_oidc_provider.py +7 -5
- ory_client/models/identity_credentials_password.py +7 -5
- ory_client/models/identity_patch.py +2 -2
- ory_client/models/identity_patch_response.py +13 -6
- ory_client/models/identity_schema_container.py +2 -2
- ory_client/models/identity_schema_preset.py +2 -2
- ory_client/models/identity_with_credentials.py +2 -2
- ory_client/models/identity_with_credentials_oidc.py +2 -2
- ory_client/models/identity_with_credentials_oidc_config.py +5 -5
- ory_client/models/identity_with_credentials_oidc_config_provider.py +8 -6
- ory_client/models/identity_with_credentials_password.py +2 -2
- ory_client/models/identity_with_credentials_password_config.py +7 -5
- ory_client/models/internal_get_project_branding_body.py +2 -2
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +2 -2
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +3 -3
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +2 -2
- ory_client/models/introspected_o_auth2_token.py +2 -2
- ory_client/models/invite_token_body.py +101 -0
- ory_client/models/invoice.py +3 -3
- ory_client/models/invoice_data_v1.py +12 -8
- ory_client/models/is_owner_for_project_by_slug.py +3 -3
- ory_client/models/json_patch.py +2 -2
- ory_client/models/json_web_key.py +2 -2
- ory_client/models/json_web_key_set.py +5 -5
- ory_client/models/keto_namespace.py +2 -2
- ory_client/models/line_item_v1.py +5 -5
- ory_client/models/list_event_streams.py +5 -5
- ory_client/models/list_invoices_response.py +5 -5
- ory_client/models/list_organizations_response.py +5 -5
- ory_client/models/list_workspace_projects.py +5 -5
- ory_client/models/list_workspaces.py +5 -5
- ory_client/models/login_flow.py +5 -5
- ory_client/models/login_flow_state.py +3 -3
- ory_client/models/logout_flow.py +2 -2
- ory_client/models/managed_identity_schema.py +2 -2
- ory_client/models/managed_identity_schema_validation_result.py +2 -2
- ory_client/models/member_invite.py +10 -3
- ory_client/models/message.py +5 -5
- ory_client/models/message_dispatch.py +2 -2
- ory_client/models/metrics_datapoint.py +2 -2
- ory_client/models/money.py +2 -2
- ory_client/models/namespace.py +2 -2
- ory_client/models/needs_privileged_session_error.py +2 -2
- ory_client/models/normalized_project.py +5 -5
- ory_client/models/normalized_project_revision.py +57 -21
- ory_client/models/normalized_project_revision_courier_channel.py +2 -2
- ory_client/models/normalized_project_revision_hook.py +2 -2
- ory_client/models/normalized_project_revision_identity_schema.py +2 -2
- ory_client/models/normalized_project_revision_saml_provider.py +148 -0
- ory_client/models/normalized_project_revision_third_party_provider.py +34 -3
- ory_client/models/normalized_project_revision_tokenizer_template.py +2 -2
- ory_client/models/o_auth2_client.py +3 -3
- ory_client/models/o_auth2_client_token_lifespans.py +2 -2
- ory_client/models/o_auth2_consent_request.py +6 -4
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +2 -2
- ory_client/models/o_auth2_consent_session.py +5 -3
- ory_client/models/o_auth2_consent_session_expires_at.py +2 -2
- ory_client/models/o_auth2_login_request.py +3 -3
- ory_client/models/o_auth2_logout_request.py +9 -4
- ory_client/models/o_auth2_redirect_to.py +2 -2
- ory_client/models/o_auth2_token_exchange.py +2 -2
- ory_client/models/oidc_configuration.py +5 -5
- ory_client/models/oidc_user_info.py +2 -2
- ory_client/models/organization.py +2 -2
- ory_client/models/organization_body.py +2 -2
- ory_client/models/pagination.py +2 -2
- ory_client/models/pagination_headers.py +2 -2
- ory_client/models/parse_error.py +2 -2
- ory_client/models/patch_identities_body.py +5 -5
- ory_client/models/perform_native_logout_body.py +2 -2
- ory_client/models/permissions_on_workspace.py +2 -2
- ory_client/models/plan.py +2 -2
- ory_client/models/plan_details.py +5 -5
- ory_client/models/post_check_permission_body.py +2 -2
- ory_client/models/post_check_permission_or_error_body.py +2 -2
- ory_client/models/project.py +5 -5
- ory_client/models/project_api_key.py +5 -3
- ory_client/models/project_branding.py +5 -5
- ory_client/models/project_branding_colors.py +2 -2
- ory_client/models/project_branding_theme.py +5 -5
- ory_client/models/project_cors.py +2 -2
- ory_client/models/project_events_datapoint.py +5 -5
- ory_client/models/project_host.py +2 -2
- ory_client/models/project_member.py +6 -4
- ory_client/models/project_metadata.py +5 -5
- ory_client/models/project_service_identity.py +2 -2
- ory_client/models/project_service_o_auth2.py +2 -2
- ory_client/models/project_service_permission.py +2 -2
- ory_client/models/project_services.py +2 -2
- ory_client/models/provider.py +113 -0
- ory_client/models/quota_usage.py +8 -6
- ory_client/models/recovery_code_for_identity.py +2 -2
- ory_client/models/recovery_flow.py +5 -5
- ory_client/models/recovery_flow_state.py +3 -3
- ory_client/models/recovery_identity_address.py +2 -2
- ory_client/models/recovery_link_for_identity.py +2 -2
- ory_client/models/registration_flow.py +5 -5
- ory_client/models/registration_flow_state.py +3 -3
- ory_client/models/reject_o_auth2_request.py +2 -2
- ory_client/models/relation_query.py +2 -2
- ory_client/models/relationship.py +2 -2
- ory_client/models/relationship_namespaces.py +5 -5
- ory_client/models/relationship_patch.py +2 -2
- ory_client/models/relationships.py +5 -5
- ory_client/models/rfc6749_error_json.py +2 -2
- ory_client/models/schema_patch.py +2 -2
- ory_client/models/self_service_flow_expired_error.py +2 -2
- ory_client/models/session.py +8 -8
- ory_client/models/session_activity_datapoint.py +2 -2
- ory_client/models/session_authentication_method.py +2 -2
- ory_client/models/session_device.py +2 -2
- ory_client/models/set_active_project_in_console_body.py +2 -2
- ory_client/models/set_custom_domain_body.py +2 -2
- ory_client/models/set_event_stream_body.py +2 -2
- ory_client/models/set_project.py +2 -2
- ory_client/models/set_project_branding_theme_body.py +2 -2
- ory_client/models/settings_flow.py +5 -5
- ory_client/models/settings_flow_state.py +3 -3
- ory_client/models/source_position.py +2 -2
- ory_client/models/subject_set.py +2 -2
- ory_client/models/subscription.py +2 -2
- ory_client/models/successful_code_exchange_response.py +2 -2
- ory_client/models/successful_native_login.py +5 -5
- ory_client/models/successful_native_registration.py +5 -5
- ory_client/models/successful_project_update.py +5 -5
- ory_client/models/tax_line_item.py +2 -2
- ory_client/models/time_interval.py +2 -2
- ory_client/models/token_pagination.py +2 -2
- ory_client/models/token_pagination_headers.py +2 -2
- ory_client/models/token_pagination_request_parameters.py +2 -2
- ory_client/models/token_pagination_response_headers.py +2 -2
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +2 -2
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +2 -2
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +2 -2
- ory_client/models/ui_container.py +8 -8
- ory_client/models/ui_node.py +8 -8
- ory_client/models/ui_node_anchor_attributes.py +2 -2
- ory_client/models/ui_node_attributes.py +4 -4
- ory_client/models/ui_node_image_attributes.py +2 -2
- ory_client/models/ui_node_input_attributes.py +32 -6
- ory_client/models/ui_node_meta.py +2 -2
- ory_client/models/ui_node_script_attributes.py +2 -2
- ory_client/models/ui_node_text_attributes.py +2 -2
- ory_client/models/ui_text.py +2 -2
- ory_client/models/update_fedcm_flow_body.py +105 -0
- ory_client/models/update_identity_body.py +2 -2
- ory_client/models/update_login_flow_body.py +35 -11
- ory_client/models/update_login_flow_with_code_method.py +5 -3
- ory_client/models/update_login_flow_with_identifier_first_method.py +107 -0
- ory_client/models/update_login_flow_with_lookup_secret_method.py +2 -2
- ory_client/models/update_login_flow_with_oidc_method.py +3 -3
- ory_client/models/update_login_flow_with_passkey_method.py +2 -2
- ory_client/models/update_login_flow_with_password_method.py +2 -2
- ory_client/models/update_login_flow_with_totp_method.py +2 -2
- ory_client/models/update_login_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_recovery_flow_body.py +4 -4
- ory_client/models/update_recovery_flow_with_code_method.py +2 -2
- ory_client/models/update_recovery_flow_with_link_method.py +2 -2
- ory_client/models/update_registration_flow_body.py +36 -12
- ory_client/models/update_registration_flow_with_code_method.py +2 -2
- ory_client/models/update_registration_flow_with_oidc_method.py +3 -3
- ory_client/models/update_registration_flow_with_passkey_method.py +2 -2
- ory_client/models/update_registration_flow_with_password_method.py +2 -2
- ory_client/models/update_registration_flow_with_profile_method.py +14 -4
- ory_client/models/update_registration_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_settings_flow_body.py +4 -4
- ory_client/models/update_settings_flow_with_lookup_method.py +2 -2
- ory_client/models/update_settings_flow_with_oidc_method.py +2 -2
- ory_client/models/update_settings_flow_with_passkey_method.py +2 -2
- ory_client/models/update_settings_flow_with_password_method.py +2 -2
- ory_client/models/update_settings_flow_with_profile_method.py +2 -2
- ory_client/models/update_settings_flow_with_totp_method.py +2 -2
- ory_client/models/update_settings_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_subscription_body.py +2 -2
- ory_client/models/update_verification_flow_body.py +4 -4
- ory_client/models/update_verification_flow_with_code_method.py +2 -2
- ory_client/models/update_verification_flow_with_link_method.py +2 -2
- ory_client/models/update_workspace_body.py +2 -2
- ory_client/models/usage.py +2 -2
- ory_client/models/verifiable_credential_priming_response.py +2 -2
- ory_client/models/verifiable_credential_proof.py +2 -2
- ory_client/models/verifiable_credential_response.py +2 -2
- ory_client/models/verifiable_identity_address.py +2 -2
- ory_client/models/verification_flow.py +2 -2
- ory_client/models/verification_flow_state.py +3 -3
- ory_client/models/version.py +2 -2
- ory_client/models/warning.py +2 -2
- ory_client/models/workspace.py +2 -2
- ory_client/models/workspace_api_key.py +6 -4
- ory_client/rest.py +5 -3
- ory_client-1.17.1.dist-info/METADATA +18 -0
- ory_client-1.17.1.dist-info/RECORD +302 -0
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/WHEEL +1 -1
- ory_client-1.12.2.dist-info/METADATA +0 -19
- ory_client-1.12.2.dist-info/RECORD +0 -289
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/LICENSE +0 -0
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -26,6 +26,7 @@ from ory_client.models.keto_namespace import KetoNamespace
|
|
26
26
|
from ory_client.models.normalized_project_revision_courier_channel import NormalizedProjectRevisionCourierChannel
|
27
27
|
from ory_client.models.normalized_project_revision_hook import NormalizedProjectRevisionHook
|
28
28
|
from ory_client.models.normalized_project_revision_identity_schema import NormalizedProjectRevisionIdentitySchema
|
29
|
+
from ory_client.models.normalized_project_revision_saml_provider import NormalizedProjectRevisionSAMLProvider
|
29
30
|
from ory_client.models.normalized_project_revision_third_party_provider import NormalizedProjectRevisionThirdPartyProvider
|
30
31
|
from ory_client.models.normalized_project_revision_tokenizer_template import NormalizedProjectRevisionTokenizerTemplate
|
31
32
|
from typing import Optional, Set
|
@@ -35,17 +36,24 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
35
36
|
"""
|
36
37
|
Create project (normalized) request payload
|
37
38
|
""" # noqa: E501
|
39
|
+
account_experience_favicon_dark: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's dark theme favicon (currently unused).")
|
40
|
+
account_experience_favicon_light: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's favicon.")
|
41
|
+
account_experience_logo_dark: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's dark theme logo (currently unused).")
|
42
|
+
account_experience_logo_light: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's logo.")
|
43
|
+
account_experience_theme_variables_dark: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's dark theme variables.")
|
44
|
+
account_experience_theme_variables_light: Optional[StrictStr] = Field(default=None, description="Holds the URL to the account experience's light theme variables.")
|
38
45
|
created_at: Optional[datetime] = Field(default=None, description="The Project's Revision Creation Date")
|
39
46
|
disable_account_experience_welcome_screen: Optional[StrictBool] = Field(default=None, description="Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.")
|
40
47
|
enable_ax_v2: Optional[StrictBool] = Field(default=None, description="Whether the new account experience is enabled and reachable.")
|
41
48
|
environment: StrictStr = Field(description=" prod Production stage Staging dev Development")
|
42
|
-
home_region: Optional[StrictStr] = Field(default=None, description=" eu-central EUCentral us-east USEast us-west USWest global Global")
|
49
|
+
home_region: Optional[StrictStr] = Field(default=None, description=" eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest us US global Global")
|
43
50
|
hydra_oauth2_allowed_top_level_claims: Optional[List[StrictStr]] = None
|
44
51
|
hydra_oauth2_client_credentials_default_grant_allowed_scope: Optional[StrictBool] = Field(default=None, description="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.")
|
45
52
|
hydra_oauth2_exclude_not_before_claim: Optional[StrictBool] = Field(default=None, description="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.")
|
46
53
|
hydra_oauth2_grant_jwt_iat_optional: Optional[StrictBool] = Field(default=None, 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. This governs the \"oauth2.grant.jwt.iat_optional\" setting.")
|
47
54
|
hydra_oauth2_grant_jwt_jti_optional: Optional[StrictBool] = Field(default=None, 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. This governs the \"oauth2.grant.jwt.jti_optional\" setting.")
|
48
55
|
hydra_oauth2_grant_jwt_max_ttl: Optional[Annotated[str, Field(strict=True)]] = Field(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.")
|
56
|
+
hydra_oauth2_grant_refresh_token_rotation_grace_period: Optional[StrictStr] = Field(default=None, description="Configures the OAuth2 Grant Refresh Token Rotation Grace Period If set to `null` or `\"0s\"`, the graceful refresh token rotation is disabled. This governs the \"oauth2.grant.refresh_token_rotation_grace_period\" setting.")
|
49
57
|
hydra_oauth2_mirror_top_level_claims: Optional[StrictBool] = Field(default=None, description="Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.")
|
50
58
|
hydra_oauth2_pkce_enforced: Optional[StrictBool] = Field(default=None, description="Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.")
|
51
59
|
hydra_oauth2_pkce_enforced_for_public_clients: Optional[StrictBool] = Field(default=None, 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.")
|
@@ -122,6 +130,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
122
130
|
kratos_courier_templates_registration_code_valid_email_body_html: Optional[StrictStr] = Field(default=None, description="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.")
|
123
131
|
kratos_courier_templates_registration_code_valid_email_body_plaintext: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.registration_code.valid.email.body.plaintext\" setting.")
|
124
132
|
kratos_courier_templates_registration_code_valid_email_subject: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Valid Registration via Code Email Subject Template This governs the \"courier.smtp.templates.registration_code.valid.email.subject\" setting.")
|
133
|
+
kratos_courier_templates_registration_code_valid_sms_body_plaintext: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Valid Registration via Code Email Subject Template This governs the \"courier.smtp.templates.registration_code.valid.sms.body.plaintext\" setting.")
|
125
134
|
kratos_courier_templates_verification_code_invalid_email_body_html: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template This governs the \"courier.smtp.templates.verification_code.invalid.email.body.html\" setting.")
|
126
135
|
kratos_courier_templates_verification_code_invalid_email_body_plaintext: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.verification_code.invalid.email.body.plaintext\" setting.")
|
127
136
|
kratos_courier_templates_verification_code_invalid_email_subject: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Invalid Verification via Code Email Subject Template This governs the \"courier.smtp.templates.verification_code.invalid.email.subject\" setting.")
|
@@ -137,6 +146,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
137
146
|
kratos_courier_templates_verification_valid_email_subject: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Valid Verification Email Subject Template This governs the \"courier.smtp.templates.verification.valid.email.subject\" setting.")
|
138
147
|
kratos_feature_flags_cacheable_sessions: Optional[StrictBool] = Field(default=None, description="Configures the Ory Kratos Session caching feature flag This governs the \"feature_flags.cacheable_sessions\" setting.")
|
139
148
|
kratos_feature_flags_cacheable_sessions_max_age: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Session caching max-age feature flag This governs the \"feature_flags.cacheable_sessions_max_age\" setting.")
|
149
|
+
kratos_feature_flags_faster_session_extend: Optional[StrictBool] = Field(default=None, description="Configures the Ory Kratos Faster Session Extend setting If enabled allows faster session extension by skipping the session lookup and returning 201 instead of 200. Disabling this feature will be deprecated in the future. This governs the \"feature_flags.faster_session_extend\" setting.")
|
140
150
|
kratos_feature_flags_use_continue_with_transitions: Optional[StrictBool] = Field(default=None, description="Configures the Ory Kratos Session use_continue_with_transitions flag This governs the \"feature_flags.use_continue_with_transitions\" setting.")
|
141
151
|
kratos_identity_schemas: Optional[List[NormalizedProjectRevisionIdentitySchema]] = None
|
142
152
|
kratos_oauth2_provider_headers: Optional[Dict[str, Any]] = Field(default=None, description="NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-")
|
@@ -195,7 +205,10 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
195
205
|
kratos_selfservice_flows_verification_notify_unknown_recipients: Optional[StrictBool] = Field(default=None, description="Configures whether to notify unknown recipients of a Ory Kratos verification flow This governs the \"selfservice.flows.verification.notify_unknown_recipients\" setting.")
|
196
206
|
kratos_selfservice_flows_verification_ui_url: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Verification UI URL This governs the \"selfservice.flows.verification.ui_url\" setting.")
|
197
207
|
kratos_selfservice_flows_verification_use: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode")
|
208
|
+
kratos_selfservice_methods_captcha_config_cf_turnstile_sitekey: Optional[StrictStr] = Field(default=None, description="Configures the Turnstile site key for CAPTCHA protection The site key is public and will be shared with the client. Reach out to your account manager to enable this feature.")
|
209
|
+
kratos_selfservice_methods_captcha_enabled: Optional[StrictBool] = Field(default=None, description="Configures the Ory Kratos Self-Service Methods' Captcha Enabled Setting Reach out to your account manager to enable this feature.")
|
198
210
|
kratos_selfservice_methods_code_config_lifespan: Optional[StrictStr] = Field(default=None, description="Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.")
|
211
|
+
kratos_selfservice_methods_code_config_missing_credential_fallback_enabled: Optional[StrictBool] = Field(default=None, description="Enables a fallback method required in certain legacy use cases. This governs the \"selfservice.methods.code.config.missing_credential_fallback_enabled\" setting.")
|
199
212
|
kratos_selfservice_methods_code_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.")
|
200
213
|
kratos_selfservice_methods_code_mfa_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.")
|
201
214
|
kratos_selfservice_methods_code_passwordless_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.")
|
@@ -218,6 +231,8 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
218
231
|
kratos_selfservice_methods_password_config_min_password_length: Optional[StrictInt] = Field(default=None, description="Configures the minimum length of passwords. This governs the \"selfservice.methods.password.config.min_password_length\" setting.")
|
219
232
|
kratos_selfservice_methods_password_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos Password Method is enabled This governs the \"selfservice.methods.password.enabled\" setting.")
|
220
233
|
kratos_selfservice_methods_profile_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos Profile Method is enabled This governs the \"selfservice.methods.profile.enabled\" setting.")
|
234
|
+
kratos_selfservice_methods_saml_config_providers: Optional[List[NormalizedProjectRevisionSAMLProvider]] = None
|
235
|
+
kratos_selfservice_methods_saml_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos SAML Login is enabled This governs the \"selfservice.methods.saml.enabled\" setting.")
|
221
236
|
kratos_selfservice_methods_totp_config_issuer: Optional[StrictStr] = Field(default=None, description="Configures Ory Kratos TOTP Issuer This governs the \"selfservice.methods.totp.config.issuer\" setting.")
|
222
237
|
kratos_selfservice_methods_totp_enabled: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos TOTP Method is enabled This governs the \"selfservice.methods.totp.enabled\" setting.")
|
223
238
|
kratos_selfservice_methods_webauthn_config_passwordless: Optional[StrictBool] = Field(default=None, description="Configures whether Ory Kratos Webauthn is used for passwordless flows This governs the \"selfservice.methods.webauthn.config.passwordless\" setting.")
|
@@ -242,7 +257,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
242
257
|
updated_at: Optional[datetime] = Field(default=None, description="Last Time Project's Revision was Updated")
|
243
258
|
workspace_id: Optional[StrictStr] = None
|
244
259
|
additional_properties: Dict[str, Any] = {}
|
245
|
-
__properties: ClassVar[List[str]] = ["created_at", "disable_account_experience_welcome_screen", "enable_ax_v2", "environment", "home_region", "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_jwt_scope_claim", "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_cacheable_sessions_max_age", "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_passkey_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_passkey_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_enable_legacy_one_step", "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_passkey_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_code_passwordless_login_fallback_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_passkey_config_rp_display_name", "kratos_selfservice_methods_passkey_config_rp_id", "kratos_selfservice_methods_passkey_config_rp_origins", "kratos_selfservice_methods_passkey_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"]
|
260
|
+
__properties: ClassVar[List[str]] = ["account_experience_favicon_dark", "account_experience_favicon_light", "account_experience_logo_dark", "account_experience_logo_light", "account_experience_theme_variables_dark", "account_experience_theme_variables_light", "created_at", "disable_account_experience_welcome_screen", "enable_ax_v2", "environment", "home_region", "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_grant_refresh_token_rotation_grace_period", "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_jwt_scope_claim", "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_registration_code_valid_sms_body_plaintext", "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_cacheable_sessions_max_age", "kratos_feature_flags_faster_session_extend", "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_passkey_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_passkey_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_enable_legacy_one_step", "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_passkey_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_captcha_config_cf_turnstile_sitekey", "kratos_selfservice_methods_captcha_enabled", "kratos_selfservice_methods_code_config_lifespan", "kratos_selfservice_methods_code_config_missing_credential_fallback_enabled", "kratos_selfservice_methods_code_enabled", "kratos_selfservice_methods_code_mfa_enabled", "kratos_selfservice_methods_code_passwordless_enabled", "kratos_selfservice_methods_code_passwordless_login_fallback_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_passkey_config_rp_display_name", "kratos_selfservice_methods_passkey_config_rp_id", "kratos_selfservice_methods_passkey_config_rp_origins", "kratos_selfservice_methods_passkey_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_saml_config_providers", "kratos_selfservice_methods_saml_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"]
|
246
261
|
|
247
262
|
@field_validator('environment')
|
248
263
|
def environment_validate_enum(cls, value):
|
@@ -257,8 +272,8 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
257
272
|
if value is None:
|
258
273
|
return value
|
259
274
|
|
260
|
-
if value not in set(['eu-central', 'us-east', 'us-west', 'global']):
|
261
|
-
raise ValueError("must be one of enum values ('eu-central', 'us-east', 'us-west', 'global')")
|
275
|
+
if value not in set(['eu-central', 'asia-northeast', 'us-east', 'us-west', 'us', 'global']):
|
276
|
+
raise ValueError("must be one of enum values ('eu-central', 'asia-northeast', 'us-east', 'us-west', 'us', 'global')")
|
262
277
|
return value
|
263
278
|
|
264
279
|
@field_validator('hydra_oauth2_grant_jwt_max_ttl')
|
@@ -421,44 +436,51 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
421
436
|
# override the default output from pydantic by calling `to_dict()` of each item in keto_namespaces (list)
|
422
437
|
_items = []
|
423
438
|
if self.keto_namespaces:
|
424
|
-
for
|
425
|
-
if
|
426
|
-
_items.append(
|
439
|
+
for _item_keto_namespaces in self.keto_namespaces:
|
440
|
+
if _item_keto_namespaces:
|
441
|
+
_items.append(_item_keto_namespaces.to_dict())
|
427
442
|
_dict['keto_namespaces'] = _items
|
428
443
|
# override the default output from pydantic by calling `to_dict()` of each item in kratos_courier_channels (list)
|
429
444
|
_items = []
|
430
445
|
if self.kratos_courier_channels:
|
431
|
-
for
|
432
|
-
if
|
433
|
-
_items.append(
|
446
|
+
for _item_kratos_courier_channels in self.kratos_courier_channels:
|
447
|
+
if _item_kratos_courier_channels:
|
448
|
+
_items.append(_item_kratos_courier_channels.to_dict())
|
434
449
|
_dict['kratos_courier_channels'] = _items
|
435
450
|
# override the default output from pydantic by calling `to_dict()` of each item in kratos_identity_schemas (list)
|
436
451
|
_items = []
|
437
452
|
if self.kratos_identity_schemas:
|
438
|
-
for
|
439
|
-
if
|
440
|
-
_items.append(
|
453
|
+
for _item_kratos_identity_schemas in self.kratos_identity_schemas:
|
454
|
+
if _item_kratos_identity_schemas:
|
455
|
+
_items.append(_item_kratos_identity_schemas.to_dict())
|
441
456
|
_dict['kratos_identity_schemas'] = _items
|
442
457
|
# override the default output from pydantic by calling `to_dict()` of each item in kratos_selfservice_methods_oidc_config_providers (list)
|
443
458
|
_items = []
|
444
459
|
if self.kratos_selfservice_methods_oidc_config_providers:
|
445
|
-
for
|
446
|
-
if
|
447
|
-
_items.append(
|
460
|
+
for _item_kratos_selfservice_methods_oidc_config_providers in self.kratos_selfservice_methods_oidc_config_providers:
|
461
|
+
if _item_kratos_selfservice_methods_oidc_config_providers:
|
462
|
+
_items.append(_item_kratos_selfservice_methods_oidc_config_providers.to_dict())
|
448
463
|
_dict['kratos_selfservice_methods_oidc_config_providers'] = _items
|
464
|
+
# override the default output from pydantic by calling `to_dict()` of each item in kratos_selfservice_methods_saml_config_providers (list)
|
465
|
+
_items = []
|
466
|
+
if self.kratos_selfservice_methods_saml_config_providers:
|
467
|
+
for _item_kratos_selfservice_methods_saml_config_providers in self.kratos_selfservice_methods_saml_config_providers:
|
468
|
+
if _item_kratos_selfservice_methods_saml_config_providers:
|
469
|
+
_items.append(_item_kratos_selfservice_methods_saml_config_providers.to_dict())
|
470
|
+
_dict['kratos_selfservice_methods_saml_config_providers'] = _items
|
449
471
|
# override the default output from pydantic by calling `to_dict()` of each item in kratos_session_whoami_tokenizer_templates (list)
|
450
472
|
_items = []
|
451
473
|
if self.kratos_session_whoami_tokenizer_templates:
|
452
|
-
for
|
453
|
-
if
|
454
|
-
_items.append(
|
474
|
+
for _item_kratos_session_whoami_tokenizer_templates in self.kratos_session_whoami_tokenizer_templates:
|
475
|
+
if _item_kratos_session_whoami_tokenizer_templates:
|
476
|
+
_items.append(_item_kratos_session_whoami_tokenizer_templates.to_dict())
|
455
477
|
_dict['kratos_session_whoami_tokenizer_templates'] = _items
|
456
478
|
# override the default output from pydantic by calling `to_dict()` of each item in project_revision_hooks (list)
|
457
479
|
_items = []
|
458
480
|
if self.project_revision_hooks:
|
459
|
-
for
|
460
|
-
if
|
461
|
-
_items.append(
|
481
|
+
for _item_project_revision_hooks in self.project_revision_hooks:
|
482
|
+
if _item_project_revision_hooks:
|
483
|
+
_items.append(_item_project_revision_hooks.to_dict())
|
462
484
|
_dict['project_revision_hooks'] = _items
|
463
485
|
# puts key-value pairs in additional_properties in the top level
|
464
486
|
if self.additional_properties is not None:
|
@@ -492,6 +514,12 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
492
514
|
return cls.model_validate(obj)
|
493
515
|
|
494
516
|
_obj = cls.model_validate({
|
517
|
+
"account_experience_favicon_dark": obj.get("account_experience_favicon_dark"),
|
518
|
+
"account_experience_favicon_light": obj.get("account_experience_favicon_light"),
|
519
|
+
"account_experience_logo_dark": obj.get("account_experience_logo_dark"),
|
520
|
+
"account_experience_logo_light": obj.get("account_experience_logo_light"),
|
521
|
+
"account_experience_theme_variables_dark": obj.get("account_experience_theme_variables_dark"),
|
522
|
+
"account_experience_theme_variables_light": obj.get("account_experience_theme_variables_light"),
|
495
523
|
"created_at": obj.get("created_at"),
|
496
524
|
"disable_account_experience_welcome_screen": obj.get("disable_account_experience_welcome_screen"),
|
497
525
|
"enable_ax_v2": obj.get("enable_ax_v2"),
|
@@ -503,6 +531,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
503
531
|
"hydra_oauth2_grant_jwt_iat_optional": obj.get("hydra_oauth2_grant_jwt_iat_optional"),
|
504
532
|
"hydra_oauth2_grant_jwt_jti_optional": obj.get("hydra_oauth2_grant_jwt_jti_optional"),
|
505
533
|
"hydra_oauth2_grant_jwt_max_ttl": obj.get("hydra_oauth2_grant_jwt_max_ttl") if obj.get("hydra_oauth2_grant_jwt_max_ttl") is not None else '720h',
|
534
|
+
"hydra_oauth2_grant_refresh_token_rotation_grace_period": obj.get("hydra_oauth2_grant_refresh_token_rotation_grace_period"),
|
506
535
|
"hydra_oauth2_mirror_top_level_claims": obj.get("hydra_oauth2_mirror_top_level_claims"),
|
507
536
|
"hydra_oauth2_pkce_enforced": obj.get("hydra_oauth2_pkce_enforced"),
|
508
537
|
"hydra_oauth2_pkce_enforced_for_public_clients": obj.get("hydra_oauth2_pkce_enforced_for_public_clients"),
|
@@ -579,6 +608,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
579
608
|
"kratos_courier_templates_registration_code_valid_email_body_html": obj.get("kratos_courier_templates_registration_code_valid_email_body_html"),
|
580
609
|
"kratos_courier_templates_registration_code_valid_email_body_plaintext": obj.get("kratos_courier_templates_registration_code_valid_email_body_plaintext"),
|
581
610
|
"kratos_courier_templates_registration_code_valid_email_subject": obj.get("kratos_courier_templates_registration_code_valid_email_subject"),
|
611
|
+
"kratos_courier_templates_registration_code_valid_sms_body_plaintext": obj.get("kratos_courier_templates_registration_code_valid_sms_body_plaintext"),
|
582
612
|
"kratos_courier_templates_verification_code_invalid_email_body_html": obj.get("kratos_courier_templates_verification_code_invalid_email_body_html"),
|
583
613
|
"kratos_courier_templates_verification_code_invalid_email_body_plaintext": obj.get("kratos_courier_templates_verification_code_invalid_email_body_plaintext"),
|
584
614
|
"kratos_courier_templates_verification_code_invalid_email_subject": obj.get("kratos_courier_templates_verification_code_invalid_email_subject"),
|
@@ -594,6 +624,7 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
594
624
|
"kratos_courier_templates_verification_valid_email_subject": obj.get("kratos_courier_templates_verification_valid_email_subject"),
|
595
625
|
"kratos_feature_flags_cacheable_sessions": obj.get("kratos_feature_flags_cacheable_sessions"),
|
596
626
|
"kratos_feature_flags_cacheable_sessions_max_age": obj.get("kratos_feature_flags_cacheable_sessions_max_age"),
|
627
|
+
"kratos_feature_flags_faster_session_extend": obj.get("kratos_feature_flags_faster_session_extend"),
|
597
628
|
"kratos_feature_flags_use_continue_with_transitions": obj.get("kratos_feature_flags_use_continue_with_transitions"),
|
598
629
|
"kratos_identity_schemas": [NormalizedProjectRevisionIdentitySchema.from_dict(_item) for _item in obj["kratos_identity_schemas"]] if obj.get("kratos_identity_schemas") is not None else None,
|
599
630
|
"kratos_oauth2_provider_headers": obj.get("kratos_oauth2_provider_headers"),
|
@@ -652,7 +683,10 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
652
683
|
"kratos_selfservice_flows_verification_notify_unknown_recipients": obj.get("kratos_selfservice_flows_verification_notify_unknown_recipients"),
|
653
684
|
"kratos_selfservice_flows_verification_ui_url": obj.get("kratos_selfservice_flows_verification_ui_url"),
|
654
685
|
"kratos_selfservice_flows_verification_use": obj.get("kratos_selfservice_flows_verification_use"),
|
686
|
+
"kratos_selfservice_methods_captcha_config_cf_turnstile_sitekey": obj.get("kratos_selfservice_methods_captcha_config_cf_turnstile_sitekey"),
|
687
|
+
"kratos_selfservice_methods_captcha_enabled": obj.get("kratos_selfservice_methods_captcha_enabled"),
|
655
688
|
"kratos_selfservice_methods_code_config_lifespan": obj.get("kratos_selfservice_methods_code_config_lifespan"),
|
689
|
+
"kratos_selfservice_methods_code_config_missing_credential_fallback_enabled": obj.get("kratos_selfservice_methods_code_config_missing_credential_fallback_enabled"),
|
656
690
|
"kratos_selfservice_methods_code_enabled": obj.get("kratos_selfservice_methods_code_enabled"),
|
657
691
|
"kratos_selfservice_methods_code_mfa_enabled": obj.get("kratos_selfservice_methods_code_mfa_enabled"),
|
658
692
|
"kratos_selfservice_methods_code_passwordless_enabled": obj.get("kratos_selfservice_methods_code_passwordless_enabled"),
|
@@ -675,6 +709,8 @@ class CreateProjectNormalizedPayload(BaseModel):
|
|
675
709
|
"kratos_selfservice_methods_password_config_min_password_length": obj.get("kratos_selfservice_methods_password_config_min_password_length"),
|
676
710
|
"kratos_selfservice_methods_password_enabled": obj.get("kratos_selfservice_methods_password_enabled"),
|
677
711
|
"kratos_selfservice_methods_profile_enabled": obj.get("kratos_selfservice_methods_profile_enabled"),
|
712
|
+
"kratos_selfservice_methods_saml_config_providers": [NormalizedProjectRevisionSAMLProvider.from_dict(_item) for _item in obj["kratos_selfservice_methods_saml_config_providers"]] if obj.get("kratos_selfservice_methods_saml_config_providers") is not None else None,
|
713
|
+
"kratos_selfservice_methods_saml_enabled": obj.get("kratos_selfservice_methods_saml_enabled"),
|
678
714
|
"kratos_selfservice_methods_totp_config_issuer": obj.get("kratos_selfservice_methods_totp_config_issuer"),
|
679
715
|
"kratos_selfservice_methods_totp_enabled": obj.get("kratos_selfservice_methods_totp_enabled"),
|
680
716
|
"kratos_selfservice_methods_webauthn_config_passwordless": obj.get("kratos_selfservice_methods_webauthn_config_passwordless"),
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
5
|
+
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
|
+
Contact: support@ory.sh
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from datetime import datetime
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class CreateWorkspaceApiKeyBody(BaseModel):
|
28
|
+
"""
|
29
|
+
CreateWorkspaceApiKeyBody
|
30
|
+
""" # noqa: E501
|
31
|
+
expires_at: Optional[datetime] = None
|
32
|
+
name: StrictStr = Field(description="The API Key Name A descriptive name for the API key.")
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
34
|
+
__properties: ClassVar[List[str]] = ["expires_at", "name"]
|
35
|
+
|
36
|
+
model_config = ConfigDict(
|
37
|
+
populate_by_name=True,
|
38
|
+
validate_assignment=True,
|
39
|
+
protected_namespaces=(),
|
40
|
+
)
|
41
|
+
|
42
|
+
|
43
|
+
def to_str(self) -> str:
|
44
|
+
"""Returns the string representation of the model using alias"""
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
46
|
+
|
47
|
+
def to_json(self) -> str:
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
54
|
+
"""Create an instance of CreateWorkspaceApiKeyBody from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
59
|
+
|
60
|
+
This has the following differences from calling pydantic's
|
61
|
+
`self.model_dump(by_alias=True)`:
|
62
|
+
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
64
|
+
were set at model initialization. Other fields with value `None`
|
65
|
+
are ignored.
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
67
|
+
"""
|
68
|
+
excluded_fields: Set[str] = set([
|
69
|
+
"additional_properties",
|
70
|
+
])
|
71
|
+
|
72
|
+
_dict = self.model_dump(
|
73
|
+
by_alias=True,
|
74
|
+
exclude=excluded_fields,
|
75
|
+
exclude_none=True,
|
76
|
+
)
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
78
|
+
if self.additional_properties is not None:
|
79
|
+
for _key, _value in self.additional_properties.items():
|
80
|
+
_dict[_key] = _value
|
81
|
+
|
82
|
+
return _dict
|
83
|
+
|
84
|
+
@classmethod
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
86
|
+
"""Create an instance of CreateWorkspaceApiKeyBody from a dict"""
|
87
|
+
if obj is None:
|
88
|
+
return None
|
89
|
+
|
90
|
+
if not isinstance(obj, dict):
|
91
|
+
return cls.model_validate(obj)
|
92
|
+
|
93
|
+
_obj = cls.model_validate({
|
94
|
+
"expires_at": obj.get("expires_at"),
|
95
|
+
"name": obj.get("name")
|
96
|
+
})
|
97
|
+
# store additional fields in additional_properties
|
98
|
+
for _key in obj.keys():
|
99
|
+
if _key not in cls.__properties:
|
100
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
101
|
+
|
102
|
+
return _obj
|
103
|
+
|
104
|
+
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -18,8 +18,8 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
23
|
from typing import Optional, Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
@@ -27,9 +27,17 @@ class CreateWorkspaceMemberInviteBody(BaseModel):
|
|
27
27
|
"""
|
28
28
|
Create Workspace Invite Request Body
|
29
29
|
""" # noqa: E501
|
30
|
-
invitee_email:
|
30
|
+
invitee_email: StrictStr = Field(description="A email to invite")
|
31
|
+
role: StrictStr = Field(description="The role the user will have in the workspace owner WorkspaceMemberRoleOwner developer WorkspaceMemberRoleDeveloper")
|
31
32
|
additional_properties: Dict[str, Any] = {}
|
32
|
-
__properties: ClassVar[List[str]] = ["invitee_email"]
|
33
|
+
__properties: ClassVar[List[str]] = ["invitee_email", "role"]
|
34
|
+
|
35
|
+
@field_validator('role')
|
36
|
+
def role_validate_enum(cls, value):
|
37
|
+
"""Validates the enum"""
|
38
|
+
if value not in set(['owner', 'developer']):
|
39
|
+
raise ValueError("must be one of enum values ('owner', 'developer')")
|
40
|
+
return value
|
33
41
|
|
34
42
|
model_config = ConfigDict(
|
35
43
|
populate_by_name=True,
|
@@ -89,7 +97,8 @@ class CreateWorkspaceMemberInviteBody(BaseModel):
|
|
89
97
|
return cls.model_validate(obj)
|
90
98
|
|
91
99
|
_obj = cls.model_validate({
|
92
|
-
"invitee_email": obj.get("invitee_email")
|
100
|
+
"invitee_email": obj.get("invitee_email"),
|
101
|
+
"role": obj.get("role")
|
93
102
|
})
|
94
103
|
# store additional fields in additional_properties
|
95
104
|
for _key in obj.keys():
|