ory-client 1.8.1__py3-none-any.whl → 1.11.6__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 +279 -10
- ory_client/api/__init__.py +16 -3
- ory_client/api/courier_api.py +576 -287
- ory_client/api/events_api.py +1147 -576
- ory_client/api/frontend_api.py +8736 -4145
- ory_client/api/identity_api.py +5219 -2605
- ory_client/api/jwk_api.py +1881 -939
- ory_client/api/metadata_api.py +245 -376
- ory_client/api/o_auth2_api.py +7763 -3858
- ory_client/api/oidc_api.py +2071 -1034
- ory_client/api/permission_api.py +1675 -776
- ory_client/api/project_api.py +5314 -2638
- ory_client/api/relationship_api.py +1844 -860
- ory_client/api/wellknown_api.py +250 -131
- ory_client/api_client.py +520 -658
- ory_client/api_response.py +21 -0
- ory_client/configuration.py +65 -75
- ory_client/exceptions.py +73 -32
- ory_client/models/__init__.py +266 -291
- ory_client/models/accept_o_auth2_consent_request.py +118 -0
- ory_client/models/accept_o_auth2_consent_request_session.py +113 -0
- ory_client/models/accept_o_auth2_login_request.py +117 -0
- ory_client/models/active_project_in_console.py +101 -0
- ory_client/models/attribute.py +103 -0
- ory_client/models/attribute_filter.py +115 -0
- ory_client/models/attributes_count_datapoint.py +103 -0
- ory_client/models/authenticator_assurance_level.py +40 -0
- ory_client/models/batch_patch_identities_response.py +109 -0
- ory_client/models/check_opl_syntax_result.py +109 -0
- ory_client/models/check_permission_result.py +101 -0
- ory_client/models/cloud_account.py +105 -0
- ory_client/models/consistency_request_parameters.py +111 -0
- ory_client/models/continue_with.py +214 -0
- ory_client/models/continue_with_recovery_ui.py +114 -0
- ory_client/models/continue_with_recovery_ui_flow.py +103 -0
- ory_client/models/continue_with_set_ory_session_token.py +110 -0
- ory_client/models/continue_with_settings_ui.py +114 -0
- ory_client/models/continue_with_settings_ui_flow.py +101 -0
- ory_client/models/continue_with_verification_ui.py +114 -0
- ory_client/models/continue_with_verification_ui_flow.py +105 -0
- ory_client/models/courier_message_status.py +40 -0
- ory_client/models/courier_message_type.py +38 -0
- ory_client/models/create_custom_domain_body.py +109 -0
- ory_client/models/create_event_stream_body.py +112 -0
- ory_client/models/create_identity_body.py +155 -0
- ory_client/models/create_invite_response.py +114 -0
- ory_client/models/create_json_web_key_set.py +105 -0
- ory_client/models/create_project_api_key_request.py +101 -0
- ory_client/models/create_project_body.py +112 -0
- ory_client/models/create_project_branding.py +115 -0
- ory_client/models/create_project_member_invite_body.py +101 -0
- ory_client/models/create_project_normalized_payload.py +685 -0
- ory_client/models/create_recovery_code_for_identity_body.py +114 -0
- ory_client/models/create_recovery_link_for_identity_body.py +114 -0
- ory_client/models/create_relationship_body.py +113 -0
- ory_client/models/create_subscription_body.py +126 -0
- ory_client/models/create_subscription_common.py +124 -0
- ory_client/models/create_verifiable_credential_request_body.py +109 -0
- ory_client/models/create_workspace_member_invite_body.py +101 -0
- ory_client/models/create_workspace_payload.py +101 -0
- ory_client/models/create_workspace_subscription_body.py +124 -0
- ory_client/models/credential_supported_draft00.py +107 -0
- ory_client/models/custom_domain.py +132 -0
- ory_client/models/delete_my_sessions_count.py +101 -0
- ory_client/models/email_template_data.py +107 -0
- ory_client/models/email_template_data_body.py +103 -0
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +107 -0
- ory_client/models/error_browser_location_change_required.py +107 -0
- ory_client/models/error_flow_replaced.py +107 -0
- ory_client/models/error_generic.py +105 -0
- ory_client/models/error_o_auth2.py +109 -0
- ory_client/models/event_stream.py +112 -0
- ory_client/models/expanded_permission_tree.py +125 -0
- ory_client/models/flow_error.py +108 -0
- ory_client/models/generic_error.py +126 -0
- ory_client/models/generic_error_content.py +109 -0
- ory_client/models/generic_usage.py +103 -0
- ory_client/models/get_attributes_count_response.py +111 -0
- ory_client/models/get_managed_identity_schema_location.py +101 -0
- ory_client/models/get_metrics_event_attributes_response.py +103 -0
- ory_client/models/get_metrics_event_types_response.py +103 -0
- ory_client/models/get_organization_response.py +105 -0
- ory_client/models/get_project_events_body.py +120 -0
- ory_client/models/get_project_events_response.py +115 -0
- ory_client/models/get_project_metrics_response.py +111 -0
- ory_client/models/get_session_activity_response.py +111 -0
- ory_client/models/get_version200_response.py +101 -0
- ory_client/models/health_not_ready_status.py +101 -0
- ory_client/models/health_status.py +101 -0
- ory_client/models/identity.py +187 -0
- ory_client/models/identity_credentials.py +122 -0
- ory_client/models/identity_credentials_code.py +109 -0
- ory_client/models/identity_credentials_oidc.py +109 -0
- ory_client/models/identity_credentials_oidc_provider.py +111 -0
- ory_client/models/identity_credentials_password.py +101 -0
- ory_client/models/identity_patch.py +107 -0
- ory_client/models/identity_patch_response.py +115 -0
- ory_client/models/identity_schema_container.py +103 -0
- ory_client/models/identity_schema_preset.py +103 -0
- ory_client/models/identity_with_credentials.py +111 -0
- ory_client/models/identity_with_credentials_oidc.py +105 -0
- ory_client/models/identity_with_credentials_oidc_config.py +115 -0
- ory_client/models/identity_with_credentials_oidc_config_provider.py +103 -0
- ory_client/models/identity_with_credentials_password.py +105 -0
- ory_client/models/identity_with_credentials_password_config.py +103 -0
- ory_client/models/internal_get_project_branding_body.py +101 -0
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +103 -0
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +114 -0
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +101 -0
- ory_client/models/introspected_o_auth2_token.py +127 -0
- ory_client/models/is_owner_for_project_by_slug.py +103 -0
- ory_client/models/json_patch.py +119 -0
- ory_client/models/json_web_key.py +133 -0
- ory_client/models/json_web_key_set.py +109 -0
- ory_client/models/keto_namespace.py +103 -0
- ory_client/models/list_event_streams.py +109 -0
- ory_client/models/list_my_workspaces_response.py +113 -0
- ory_client/models/list_organizations_response.py +109 -0
- ory_client/models/list_workspace_projects_response.py +113 -0
- ory_client/models/login_flow.py +165 -0
- ory_client/models/login_flow_state.py +39 -0
- ory_client/models/logout_flow.py +103 -0
- ory_client/models/managed_identity_schema.py +120 -0
- ory_client/models/managed_identity_schema_validation_result.py +103 -0
- ory_client/models/member_invite.py +148 -0
- ory_client/models/message.py +141 -0
- ory_client/models/message_dispatch.py +119 -0
- ory_client/models/metrics_datapoint.py +104 -0
- ory_client/models/migration_options.py +117 -0
- ory_client/models/namespace.py +101 -0
- ory_client/models/needs_privileged_session_error.py +107 -0
- ory_client/models/normalized_project.py +171 -0
- ory_client/models/normalized_project_revision.py +674 -0
- ory_client/models/normalized_project_revision_courier_channel.py +145 -0
- ory_client/models/normalized_project_revision_hook.py +140 -0
- ory_client/models/normalized_project_revision_identity_schema.py +133 -0
- ory_client/models/normalized_project_revision_third_party_provider.py +187 -0
- ory_client/models/normalized_project_revision_tokenizer_template.py +133 -0
- ory_client/models/o_auth2_client.py +352 -0
- ory_client/models/o_auth2_client_token_lifespans.py +270 -0
- ory_client/models/o_auth2_consent_request.py +133 -0
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +109 -0
- ory_client/models/o_auth2_consent_session.py +130 -0
- ory_client/models/o_auth2_consent_session_expires_at.py +110 -0
- ory_client/models/o_auth2_login_request.py +125 -0
- ory_client/models/o_auth2_logout_request.py +115 -0
- ory_client/models/o_auth2_redirect_to.py +101 -0
- ory_client/models/o_auth2_token_exchange.py +111 -0
- ory_client/models/oidc_configuration.py +169 -0
- ory_client/models/oidc_user_info.py +137 -0
- ory_client/models/organization.py +116 -0
- ory_client/models/organization_body.py +103 -0
- ory_client/models/pagination.py +104 -0
- ory_client/models/pagination_headers.py +103 -0
- ory_client/models/parse_error.py +112 -0
- ory_client/models/patch_identities_body.py +109 -0
- ory_client/models/perform_native_logout_body.py +101 -0
- ory_client/models/permissions_on_workpace_response.py +101 -0
- ory_client/models/plan.py +103 -0
- ory_client/models/plan_details.py +128 -0
- ory_client/models/post_check_permission_body.py +113 -0
- ory_client/models/post_check_permission_or_error_body.py +113 -0
- ory_client/models/project.py +148 -0
- ory_client/models/project_api_key.py +126 -0
- ory_client/models/project_branding.py +129 -0
- ory_client/models/project_branding_colors.py +157 -0
- ory_client/models/project_branding_theme.py +182 -0
- ory_client/models/project_cors.py +103 -0
- ory_client/models/project_events_datapoint.py +114 -0
- ory_client/models/project_host.py +107 -0
- ory_client/models/project_member.py +107 -0
- ory_client/models/project_metadata.py +161 -0
- ory_client/models/project_service_identity.py +101 -0
- ory_client/models/project_service_o_auth2.py +101 -0
- ory_client/models/project_service_permission.py +101 -0
- ory_client/models/project_services.py +117 -0
- ory_client/models/quota_usage.py +118 -0
- ory_client/models/recovery_code_for_identity.py +106 -0
- ory_client/models/recovery_flow.py +139 -0
- ory_client/models/recovery_flow_state.py +39 -0
- ory_client/models/recovery_identity_address.py +110 -0
- ory_client/models/recovery_link_for_identity.py +104 -0
- ory_client/models/registration_flow.py +156 -0
- ory_client/models/registration_flow_state.py +39 -0
- ory_client/models/reject_o_auth2_request.py +109 -0
- ory_client/models/relation_query.py +113 -0
- ory_client/models/relationship.py +113 -0
- ory_client/models/relationship_namespaces.py +109 -0
- ory_client/models/relationship_patch.py +117 -0
- ory_client/models/relationships.py +111 -0
- ory_client/models/rfc6749_error_json.py +109 -0
- ory_client/models/schema_patch.py +103 -0
- ory_client/models/self_service_flow_expired_error.py +112 -0
- ory_client/models/session.py +141 -0
- ory_client/models/session_activity_datapoint.py +105 -0
- ory_client/models/session_authentication_method.py +121 -0
- ory_client/models/session_device.py +107 -0
- ory_client/models/set_active_project_in_console_body.py +101 -0
- ory_client/models/set_custom_domain_body.py +109 -0
- ory_client/models/set_event_stream_body.py +112 -0
- ory_client/models/set_project.py +118 -0
- ory_client/models/set_project_branding_theme_body.py +115 -0
- ory_client/models/settings_flow.py +145 -0
- ory_client/models/settings_flow_state.py +38 -0
- ory_client/models/source_position.py +103 -0
- ory_client/models/subject_set.py +105 -0
- ory_client/models/subscription.py +179 -0
- ory_client/models/successful_code_exchange_response.py +107 -0
- ory_client/models/successful_native_login.py +117 -0
- ory_client/models/successful_native_registration.py +123 -0
- ory_client/models/successful_project_update.py +115 -0
- ory_client/models/token_pagination.py +104 -0
- ory_client/models/token_pagination_headers.py +103 -0
- ory_client/models/token_pagination_request_parameters.py +104 -0
- ory_client/models/token_pagination_response_headers.py +103 -0
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +116 -0
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +120 -0
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +103 -0
- ory_client/models/ui_container.py +123 -0
- ory_client/models/ui_node.py +139 -0
- ory_client/models/ui_node_anchor_attributes.py +118 -0
- ory_client/models/ui_node_attributes.py +238 -0
- ory_client/models/ui_node_image_attributes.py +116 -0
- ory_client/models/ui_node_input_attributes.py +154 -0
- ory_client/models/ui_node_meta.py +105 -0
- ory_client/models/ui_node_script_attributes.py +124 -0
- ory_client/models/ui_node_text_attributes.py +116 -0
- ory_client/models/ui_text.py +114 -0
- ory_client/models/update_identity_body.py +132 -0
- ory_client/models/update_login_flow_body.py +286 -0
- ory_client/models/update_login_flow_with_code_method.py +111 -0
- ory_client/models/update_login_flow_with_lookup_secret_method.py +105 -0
- ory_client/models/update_login_flow_with_oidc_method.py +115 -0
- ory_client/models/update_login_flow_with_passkey_method.py +105 -0
- ory_client/models/update_login_flow_with_password_method.py +111 -0
- ory_client/models/update_login_flow_with_totp_method.py +107 -0
- ory_client/models/update_login_flow_with_web_authn_method.py +109 -0
- ory_client/models/update_recovery_flow_body.py +166 -0
- ory_client/models/update_recovery_flow_with_code_method.py +116 -0
- ory_client/models/update_recovery_flow_with_link_method.py +114 -0
- ory_client/models/update_registration_flow_body.py +238 -0
- ory_client/models/update_registration_flow_with_code_method.py +111 -0
- ory_client/models/update_registration_flow_with_oidc_method.py +115 -0
- ory_client/models/update_registration_flow_with_passkey_method.py +109 -0
- ory_client/models/update_registration_flow_with_password_method.py +109 -0
- ory_client/models/update_registration_flow_with_profile_method.py +109 -0
- ory_client/models/update_registration_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_settings_flow_body.py +286 -0
- ory_client/models/update_settings_flow_with_lookup_method.py +113 -0
- ory_client/models/update_settings_flow_with_oidc_method.py +113 -0
- ory_client/models/update_settings_flow_with_passkey_method.py +107 -0
- ory_client/models/update_settings_flow_with_password_method.py +107 -0
- ory_client/models/update_settings_flow_with_profile_method.py +107 -0
- ory_client/models/update_settings_flow_with_totp_method.py +109 -0
- ory_client/models/update_settings_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_subscription_body.py +112 -0
- ory_client/models/update_verification_flow_body.py +166 -0
- ory_client/models/update_verification_flow_with_code_method.py +116 -0
- ory_client/models/update_verification_flow_with_link_method.py +114 -0
- ory_client/models/update_workspace_payload.py +101 -0
- ory_client/models/usage.py +105 -0
- ory_client/models/verifiable_credential_priming_response.py +115 -0
- ory_client/models/verifiable_credential_proof.py +103 -0
- ory_client/models/verifiable_credential_response.py +103 -0
- ory_client/models/verifiable_identity_address.py +123 -0
- ory_client/models/verification_flow.py +129 -0
- ory_client/models/verification_flow_state.py +39 -0
- ory_client/models/version.py +101 -0
- ory_client/models/warning.py +103 -0
- ory_client/models/workspace.py +115 -0
- ory_client/models/workspace_meta.py +122 -0
- ory_client/py.typed +0 -0
- ory_client/rest.py +139 -236
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/METADATA +6 -4
- ory_client-1.11.6.dist-info/RECORD +278 -0
- ory_client/apis/__init__.py +0 -28
- ory_client/model/__init__.py +0 -5
- ory_client/model/accept_o_auth2_consent_request.py +0 -296
- ory_client/model/accept_o_auth2_consent_request_session.py +0 -268
- ory_client/model/accept_o_auth2_login_request.py +0 -308
- ory_client/model/active_project_in_console.py +0 -264
- ory_client/model/attribute.py +0 -268
- ory_client/model/attribute_filter.py +0 -282
- ory_client/model/attributes_count_datapoint.py +0 -276
- ory_client/model/authenticator_assurance_level.py +0 -293
- ory_client/model/batch_patch_identities_response.py +0 -270
- ory_client/model/check_opl_syntax_result.py +0 -270
- ory_client/model/check_permission_result.py +0 -270
- ory_client/model/cloud_account.py +0 -282
- ory_client/model/consistency_request_parameters.py +0 -269
- ory_client/model/continue_with.py +0 -356
- ory_client/model/continue_with_recovery_ui.py +0 -287
- ory_client/model/continue_with_recovery_ui_flow.py +0 -274
- ory_client/model/continue_with_set_ory_session_token.py +0 -281
- ory_client/model/continue_with_settings_ui.py +0 -287
- ory_client/model/continue_with_settings_ui_flow.py +0 -270
- ory_client/model/continue_with_verification_ui.py +0 -287
- ory_client/model/continue_with_verification_ui_flow.py +0 -280
- ory_client/model/courier_message_status.py +0 -293
- ory_client/model/courier_message_type.py +0 -291
- ory_client/model/create_custom_domain_body.py +0 -280
- ory_client/model/create_event_stream_body.py +0 -287
- ory_client/model/create_identity_body.py +0 -314
- ory_client/model/create_invite_response.py +0 -282
- ory_client/model/create_json_web_key_set.py +0 -282
- ory_client/model/create_member_invite_response.py +0 -287
- ory_client/model/create_project_api_key_request.py +0 -270
- ory_client/model/create_project_body.py +0 -284
- ory_client/model/create_project_branding.py +0 -290
- ory_client/model/create_project_member_invite_body.py +0 -264
- ory_client/model/create_project_normalized_payload.py +0 -1115
- ory_client/model/create_recovery_code_for_identity_body.py +0 -279
- ory_client/model/create_recovery_link_for_identity_body.py +0 -279
- ory_client/model/create_relationship_body.py +0 -286
- ory_client/model/create_subscription_body.py +0 -298
- ory_client/model/create_subscription_common.py +0 -292
- ory_client/model/create_verifiable_credential_request_body.py +0 -278
- ory_client/model/create_workspace_member_invite_body.py +0 -264
- ory_client/model/create_workspace_payload.py +0 -270
- ory_client/model/create_workspace_subscription_body.py +0 -292
- ory_client/model/credential_supported_draft00.py +0 -276
- ory_client/model/custom_domain.py +0 -334
- ory_client/model/delete_my_sessions_count.py +0 -264
- ory_client/model/email_template_data.py +0 -282
- ory_client/model/email_template_data_body.py +0 -276
- ory_client/model/error_authenticator_assurance_level_not_satisfied.py +0 -274
- ory_client/model/error_browser_location_change_required.py +0 -274
- ory_client/model/error_flow_replaced.py +0 -274
- ory_client/model/error_generic.py +0 -276
- ory_client/model/error_o_auth2.py +0 -280
- ory_client/model/event_stream.py +0 -284
- ory_client/model/expanded_permission_tree.py +0 -294
- ory_client/model/flow_error.py +0 -282
- ory_client/model/generic_error.py +0 -308
- ory_client/model/generic_error_content.py +0 -280
- ory_client/model/generic_usage.py +0 -276
- ory_client/model/get_attributes_count_response.py +0 -273
- ory_client/model/get_managed_identity_schema_location.py +0 -264
- ory_client/model/get_metrics_event_attributes_response.py +0 -267
- ory_client/model/get_metrics_event_types_response.py +0 -267
- ory_client/model/get_organization_response.py +0 -276
- ory_client/model/get_project_events_body.py +0 -298
- ory_client/model/get_project_events_response.py +0 -278
- ory_client/model/get_project_metrics_response.py +0 -273
- ory_client/model/get_session_activity_response.py +0 -273
- ory_client/model/get_version200_response.py +0 -270
- ory_client/model/health_not_ready_status.py +0 -264
- ory_client/model/health_status.py +0 -264
- ory_client/model/identity.py +0 -342
- ory_client/model/identity_credentials.py +0 -294
- ory_client/model/identity_credentials_code.py +0 -268
- ory_client/model/identity_credentials_oidc.py +0 -270
- ory_client/model/identity_credentials_oidc_provider.py +0 -284
- ory_client/model/identity_credentials_password.py +0 -264
- ory_client/model/identity_patch.py +0 -274
- ory_client/model/identity_patch_response.py +0 -275
- ory_client/model/identity_schema_container.py +0 -268
- ory_client/model/identity_schema_preset.py +0 -276
- ory_client/model/identity_schema_presets.py +0 -292
- ory_client/model/identity_schemas.py +0 -292
- ory_client/model/identity_with_credentials.py +0 -276
- ory_client/model/identity_with_credentials_oidc.py +0 -270
- ory_client/model/identity_with_credentials_oidc_config.py +0 -276
- ory_client/model/identity_with_credentials_oidc_config_provider.py +0 -276
- ory_client/model/identity_with_credentials_password.py +0 -270
- ory_client/model/identity_with_credentials_password_config.py +0 -268
- ory_client/model/internal_get_project_branding_body.py +0 -264
- ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +0 -276
- ory_client/model/internal_is_owner_for_project_by_slug_body.py +0 -290
- ory_client/model/internal_is_owner_for_project_by_slug_response.py +0 -270
- ory_client/model/introspected_o_auth2_token.py +0 -322
- ory_client/model/is_owner_for_project_by_slug.py +0 -276
- ory_client/model/is_ready200_response.py +0 -270
- ory_client/model/is_ready503_response.py +0 -270
- ory_client/model/json_patch.py +0 -292
- ory_client/model/json_patch_document.py +0 -292
- ory_client/model/json_web_key.py +0 -340
- ory_client/model/json_web_key_set.py +0 -270
- ory_client/model/keto_namespace.py +0 -268
- ory_client/model/keto_namespaces.py +0 -292
- ory_client/model/list_custom_domains.py +0 -292
- ory_client/model/list_event_streams.py +0 -270
- ory_client/model/list_my_workspaces_response.py +0 -288
- ory_client/model/list_organizations_response.py +0 -276
- ory_client/model/list_workspace_projects_response.py +0 -288
- ory_client/model/login_flow.py +0 -370
- ory_client/model/login_flow_state.py +0 -292
- ory_client/model/logout_flow.py +0 -276
- ory_client/model/managed_identity_schema.py +0 -300
- ory_client/model/managed_identity_schema_validation_result.py +0 -268
- ory_client/model/managed_identity_schemas.py +0 -292
- ory_client/model/member_invite.py +0 -321
- ory_client/model/member_invites.py +0 -292
- ory_client/model/message.py +0 -355
- ory_client/model/message_dispatch.py +0 -302
- ory_client/model/metrics_datapoint.py +0 -276
- ory_client/model/migration_options.py +0 -284
- ory_client/model/namespace.py +0 -264
- ory_client/model/needs_privileged_session_error.py +0 -280
- ory_client/model/normalized_project.py +0 -337
- ory_client/model/normalized_project_revision.py +0 -1101
- ory_client/model/normalized_project_revision_courier_channel.py +0 -328
- ory_client/model/normalized_project_revision_hook.py +0 -342
- ory_client/model/normalized_project_revision_identity_schema.py +0 -308
- ory_client/model/normalized_project_revision_identity_schemas.py +0 -292
- ory_client/model/normalized_project_revision_third_party_provider.py +0 -368
- ory_client/model/normalized_project_revision_tokenizer_template.py +0 -300
- ory_client/model/normalized_project_revision_tokenizer_templates.py +0 -292
- ory_client/model/normalized_projects.py +0 -292
- ory_client/model/null_duration.py +0 -292
- ory_client/model/o_auth2_client.py +0 -460
- ory_client/model/o_auth2_client_token_lifespans.py +0 -306
- ory_client/model/o_auth2_consent_request.py +0 -328
- ory_client/model/o_auth2_consent_request_open_id_connect_context.py +0 -280
- ory_client/model/o_auth2_consent_session.py +0 -308
- ory_client/model/o_auth2_consent_session_expires_at.py +0 -280
- ory_client/model/o_auth2_consent_sessions.py +0 -292
- ory_client/model/o_auth2_login_request.py +0 -320
- ory_client/model/o_auth2_logout_request.py +0 -290
- ory_client/model/o_auth2_redirect_to.py +0 -270
- ory_client/model/o_auth2_token_exchange.py +0 -284
- ory_client/model/oidc_configuration.py +0 -412
- ory_client/model/oidc_user_info.py +0 -336
- ory_client/model/organization.py +0 -302
- ory_client/model/organization_body.py +0 -268
- ory_client/model/pagination.py +0 -274
- ory_client/model/pagination_headers.py +0 -268
- ory_client/model/parse_error.py +0 -278
- ory_client/model/patch_identities_body.py +0 -270
- ory_client/model/perform_native_logout_body.py +0 -270
- ory_client/model/permissions_on_project.py +0 -260
- ory_client/model/permissions_on_workpace_response.py +0 -264
- ory_client/model/plan.py +0 -276
- ory_client/model/plan_details.py +0 -312
- ory_client/model/plan_features.py +0 -266
- ory_client/model/plans.py +0 -287
- ory_client/model/post_check_permission_body.py +0 -286
- ory_client/model/post_check_permission_or_error_body.py +0 -286
- ory_client/model/pricing.py +0 -292
- ory_client/model/project.py +0 -319
- ory_client/model/project_api_key.py +0 -298
- ory_client/model/project_api_keys.py +0 -292
- ory_client/model/project_branding.py +0 -303
- ory_client/model/project_branding_colors.py +0 -376
- ory_client/model/project_branding_theme.py +0 -421
- ory_client/model/project_branding_themes.py +0 -292
- ory_client/model/project_cors.py +0 -268
- ory_client/model/project_events_datapoint.py +0 -288
- ory_client/model/project_host.py +0 -281
- ory_client/model/project_member.py +0 -288
- ory_client/model/project_members.py +0 -292
- ory_client/model/project_metadata.py +0 -337
- ory_client/model/project_metadata_list.py +0 -292
- ory_client/model/project_revision_hooks.py +0 -292
- ory_client/model/project_revision_identity_schemas.py +0 -292
- ory_client/model/project_revision_third_party_login_providers.py +0 -292
- ory_client/model/project_revisions.py +0 -292
- ory_client/model/project_service_identity.py +0 -270
- ory_client/model/project_service_o_auth2.py +0 -270
- ory_client/model/project_service_permission.py +0 -270
- ory_client/model/project_services.py +0 -282
- ory_client/model/projects.py +0 -292
- ory_client/model/quota_usage.py +0 -326
- ory_client/model/recovery_code_for_identity.py +0 -280
- ory_client/model/recovery_flow.py +0 -330
- ory_client/model/recovery_flow_state.py +0 -292
- ory_client/model/recovery_identity_address.py +0 -290
- ory_client/model/recovery_link_for_identity.py +0 -274
- ory_client/model/registration_flow.py +0 -352
- ory_client/model/registration_flow_state.py +0 -292
- ory_client/model/reject_o_auth2_request.py +0 -280
- ory_client/model/relation_query.py +0 -286
- ory_client/model/relationship.py +0 -296
- ory_client/model/relationship_namespaces.py +0 -270
- ory_client/model/relationship_patch.py +0 -278
- ory_client/model/relationships.py +0 -274
- ory_client/model/revision_courier_channels.py +0 -292
- ory_client/model/rfc6749_error_json.py +0 -280
- ory_client/model/schema_patch.py +0 -276
- ory_client/model/self_service_flow_expired_error.py +0 -282
- ory_client/model/session.py +0 -318
- ory_client/model/session_activity_datapoint.py +0 -282
- ory_client/model/session_authentication_method.py +0 -297
- ory_client/model/session_authentication_methods.py +0 -292
- ory_client/model/session_device.py +0 -282
- ory_client/model/set_active_project_in_console_body.py +0 -270
- ory_client/model/set_custom_domain_body.py +0 -280
- ory_client/model/set_event_stream_body.py +0 -287
- ory_client/model/set_project.py +0 -296
- ory_client/model/set_project_branding_theme_body.py +0 -290
- ory_client/model/settings_flow.py +0 -338
- ory_client/model/settings_flow_state.py +0 -291
- ory_client/model/source_position.py +0 -268
- ory_client/model/string_slice_json_format.py +0 -287
- ory_client/model/subject_set.py +0 -282
- ory_client/model/subscription.py +0 -350
- ory_client/model/successful_code_exchange_response.py +0 -280
- ory_client/model/successful_native_login.py +0 -280
- ory_client/model/successful_native_registration.py +0 -292
- ory_client/model/successful_project_update.py +0 -284
- ory_client/model/token_pagination.py +0 -274
- ory_client/model/token_pagination_headers.py +0 -268
- ory_client/model/token_pagination_request_parameters.py +0 -274
- ory_client/model/token_pagination_response_headers.py +0 -268
- ory_client/model/trust_o_auth2_jwt_grant_issuer.py +0 -302
- ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +0 -298
- ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +0 -292
- ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +0 -268
- ory_client/model/ui_container.py +0 -294
- ory_client/model/ui_node.py +0 -322
- ory_client/model/ui_node_anchor_attributes.py +0 -294
- ory_client/model/ui_node_attributes.py +0 -440
- ory_client/model/ui_node_image_attributes.py +0 -294
- ory_client/model/ui_node_input_attributes.py +0 -340
- ory_client/model/ui_node_meta.py +0 -270
- ory_client/model/ui_node_script_attributes.py +0 -318
- ory_client/model/ui_node_text_attributes.py +0 -288
- ory_client/model/ui_nodes.py +0 -292
- ory_client/model/ui_text.py +0 -291
- ory_client/model/ui_texts.py +0 -292
- ory_client/model/update_identity_body.py +0 -304
- ory_client/model/update_login_flow_body.py +0 -411
- ory_client/model/update_login_flow_with_code_method.py +0 -292
- ory_client/model/update_login_flow_with_lookup_secret_method.py +0 -280
- ory_client/model/update_login_flow_with_oidc_method.py +0 -300
- ory_client/model/update_login_flow_with_password_method.py +0 -294
- ory_client/model/update_login_flow_with_totp_method.py +0 -284
- ory_client/model/update_login_flow_with_web_authn_method.py +0 -288
- ory_client/model/update_recovery_flow_body.py +0 -351
- ory_client/model/update_recovery_flow_with_code_method.py +0 -290
- ory_client/model/update_recovery_flow_with_link_method.py +0 -288
- ory_client/model/update_registration_flow_body.py +0 -389
- ory_client/model/update_registration_flow_with_code_method.py +0 -292
- ory_client/model/update_registration_flow_with_oidc_method.py +0 -300
- ory_client/model/update_registration_flow_with_password_method.py +0 -290
- ory_client/model/update_registration_flow_with_web_authn_method.py +0 -292
- ory_client/model/update_settings_flow_body.py +0 -419
- ory_client/model/update_settings_flow_with_lookup_method.py +0 -294
- ory_client/model/update_settings_flow_with_oidc_method.py +0 -294
- ory_client/model/update_settings_flow_with_password_method.py +0 -284
- ory_client/model/update_settings_flow_with_profile_method.py +0 -284
- ory_client/model/update_settings_flow_with_totp_method.py +0 -286
- ory_client/model/update_settings_flow_with_web_authn_method.py +0 -290
- ory_client/model/update_subscription_body.py +0 -284
- ory_client/model/update_verification_flow_body.py +0 -351
- ory_client/model/update_verification_flow_with_code_method.py +0 -290
- ory_client/model/update_verification_flow_with_link_method.py +0 -288
- ory_client/model/update_workspace_payload.py +0 -270
- ory_client/model/usage.py +0 -270
- ory_client/model/verifiable_credential_priming_response.py +0 -292
- ory_client/model/verifiable_credential_proof.py +0 -268
- ory_client/model/verifiable_credential_response.py +0 -268
- ory_client/model/verifiable_identity_address.py +0 -308
- ory_client/model/verification_flow.py +0 -318
- ory_client/model/verification_flow_state.py +0 -292
- ory_client/model/version.py +0 -264
- ory_client/model/warning.py +0 -268
- ory_client/model/workspace.py +0 -292
- ory_client/model/workspace_meta.py +0 -296
- ory_client/model/workspaces.py +0 -292
- ory_client/model_utils.py +0 -2059
- ory_client-1.8.1.dist-info/RECORD +0 -310
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/LICENSE +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/WHEEL +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,129 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
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
|
24
|
+
from ory_client.models.project_branding_theme import ProjectBrandingTheme
|
25
|
+
from typing import Optional, Set
|
26
|
+
from typing_extensions import Self
|
27
|
+
|
28
|
+
class ProjectBranding(BaseModel):
|
29
|
+
"""
|
30
|
+
ProjectBranding
|
31
|
+
""" # noqa: E501
|
32
|
+
created_at: datetime = Field(description="The Customization Creation Date")
|
33
|
+
default_theme: ProjectBrandingTheme
|
34
|
+
id: StrictStr = Field(description="The customization ID.")
|
35
|
+
project_id: StrictStr = Field(description="The Project's ID this customization is associated with")
|
36
|
+
themes: List[ProjectBrandingTheme]
|
37
|
+
updated_at: datetime = Field(description="Last Time Branding was Updated")
|
38
|
+
additional_properties: Dict[str, Any] = {}
|
39
|
+
__properties: ClassVar[List[str]] = ["created_at", "default_theme", "id", "project_id", "themes", "updated_at"]
|
40
|
+
|
41
|
+
model_config = ConfigDict(
|
42
|
+
populate_by_name=True,
|
43
|
+
validate_assignment=True,
|
44
|
+
protected_namespaces=(),
|
45
|
+
)
|
46
|
+
|
47
|
+
|
48
|
+
def to_str(self) -> str:
|
49
|
+
"""Returns the string representation of the model using alias"""
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
51
|
+
|
52
|
+
def to_json(self) -> str:
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
55
|
+
return json.dumps(self.to_dict())
|
56
|
+
|
57
|
+
@classmethod
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
59
|
+
"""Create an instance of ProjectBranding from a JSON string"""
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
61
|
+
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
64
|
+
|
65
|
+
This has the following differences from calling pydantic's
|
66
|
+
`self.model_dump(by_alias=True)`:
|
67
|
+
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
69
|
+
were set at model initialization. Other fields with value `None`
|
70
|
+
are ignored.
|
71
|
+
* OpenAPI `readOnly` fields are excluded.
|
72
|
+
* OpenAPI `readOnly` fields are excluded.
|
73
|
+
* OpenAPI `readOnly` fields are excluded.
|
74
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
75
|
+
"""
|
76
|
+
excluded_fields: Set[str] = set([
|
77
|
+
"created_at",
|
78
|
+
"id",
|
79
|
+
"updated_at",
|
80
|
+
"additional_properties",
|
81
|
+
])
|
82
|
+
|
83
|
+
_dict = self.model_dump(
|
84
|
+
by_alias=True,
|
85
|
+
exclude=excluded_fields,
|
86
|
+
exclude_none=True,
|
87
|
+
)
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of default_theme
|
89
|
+
if self.default_theme:
|
90
|
+
_dict['default_theme'] = self.default_theme.to_dict()
|
91
|
+
# override the default output from pydantic by calling `to_dict()` of each item in themes (list)
|
92
|
+
_items = []
|
93
|
+
if self.themes:
|
94
|
+
for _item in self.themes:
|
95
|
+
if _item:
|
96
|
+
_items.append(_item.to_dict())
|
97
|
+
_dict['themes'] = _items
|
98
|
+
# puts key-value pairs in additional_properties in the top level
|
99
|
+
if self.additional_properties is not None:
|
100
|
+
for _key, _value in self.additional_properties.items():
|
101
|
+
_dict[_key] = _value
|
102
|
+
|
103
|
+
return _dict
|
104
|
+
|
105
|
+
@classmethod
|
106
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
107
|
+
"""Create an instance of ProjectBranding from a dict"""
|
108
|
+
if obj is None:
|
109
|
+
return None
|
110
|
+
|
111
|
+
if not isinstance(obj, dict):
|
112
|
+
return cls.model_validate(obj)
|
113
|
+
|
114
|
+
_obj = cls.model_validate({
|
115
|
+
"created_at": obj.get("created_at"),
|
116
|
+
"default_theme": ProjectBrandingTheme.from_dict(obj["default_theme"]) if obj.get("default_theme") is not None else None,
|
117
|
+
"id": obj.get("id"),
|
118
|
+
"project_id": obj.get("project_id"),
|
119
|
+
"themes": [ProjectBrandingTheme.from_dict(_item) for _item in obj["themes"]] if obj.get("themes") is not None else None,
|
120
|
+
"updated_at": obj.get("updated_at")
|
121
|
+
})
|
122
|
+
# store additional fields in additional_properties
|
123
|
+
for _key in obj.keys():
|
124
|
+
if _key not in cls.__properties:
|
125
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
126
|
+
|
127
|
+
return _obj
|
128
|
+
|
129
|
+
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
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 pydantic import BaseModel, ConfigDict, Field, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class ProjectBrandingColors(BaseModel):
|
27
|
+
"""
|
28
|
+
ProjectBrandingColors
|
29
|
+
""" # noqa: E501
|
30
|
+
accent_default_color: Optional[StrictStr] = Field(default=None, description="AccentDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
31
|
+
accent_disabled_color: Optional[StrictStr] = Field(default=None, description="AccentDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
32
|
+
accent_emphasis_color: Optional[StrictStr] = Field(default=None, description="AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
33
|
+
accent_muted_color: Optional[StrictStr] = Field(default=None, description="AccentMutedColor is a hex color code used by the Ory Account Experience theme.")
|
34
|
+
accent_subtle_color: Optional[StrictStr] = Field(default=None, description="AccentSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
35
|
+
background_canvas_color: Optional[StrictStr] = Field(default=None, description="BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.")
|
36
|
+
background_subtle_color: Optional[StrictStr] = Field(default=None, description="BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
37
|
+
background_surface_color: Optional[StrictStr] = Field(default=None, description="BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.")
|
38
|
+
border_default_color: Optional[StrictStr] = Field(default=None, description="BorderDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
39
|
+
error_default_color: Optional[StrictStr] = Field(default=None, description="ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
40
|
+
error_emphasis_color: Optional[StrictStr] = Field(default=None, description="ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
41
|
+
error_muted_color: Optional[StrictStr] = Field(default=None, description="ErrorMutedColor is a hex color code used by the Ory Account Experience theme.")
|
42
|
+
error_subtle_color: Optional[StrictStr] = Field(default=None, description="ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
43
|
+
foreground_default_color: Optional[StrictStr] = Field(default=None, description="ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
44
|
+
foreground_disabled_color: Optional[StrictStr] = Field(default=None, description="ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
45
|
+
foreground_muted_color: Optional[StrictStr] = Field(default=None, description="ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.")
|
46
|
+
foreground_on_accent_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.")
|
47
|
+
foreground_on_dark_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.")
|
48
|
+
foreground_on_disabled_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
49
|
+
foreground_subtle_color: Optional[StrictStr] = Field(default=None, description="ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
50
|
+
input_background_color: Optional[StrictStr] = Field(default=None, description="InputBackgroundColor is a hex color code used by the Ory Account Experience theme.")
|
51
|
+
input_disabled_color: Optional[StrictStr] = Field(default=None, description="InputDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
52
|
+
input_placeholder_color: Optional[StrictStr] = Field(default=None, description="InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.")
|
53
|
+
input_text_color: Optional[StrictStr] = Field(default=None, description="InputTextColor is a hex color code used by the Ory Account Experience theme.")
|
54
|
+
primary_color: Optional[StrictStr] = Field(default=None, description="Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.")
|
55
|
+
secondary_color: Optional[StrictStr] = Field(default=None, description="Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.")
|
56
|
+
success_emphasis_color: Optional[StrictStr] = Field(default=None, description="SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
57
|
+
text_default_color: Optional[StrictStr] = Field(default=None, description="TextDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
58
|
+
text_disabled_color: Optional[StrictStr] = Field(default=None, description="TextDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
59
|
+
additional_properties: Dict[str, Any] = {}
|
60
|
+
__properties: ClassVar[List[str]] = ["accent_default_color", "accent_disabled_color", "accent_emphasis_color", "accent_muted_color", "accent_subtle_color", "background_canvas_color", "background_subtle_color", "background_surface_color", "border_default_color", "error_default_color", "error_emphasis_color", "error_muted_color", "error_subtle_color", "foreground_default_color", "foreground_disabled_color", "foreground_muted_color", "foreground_on_accent_color", "foreground_on_dark_color", "foreground_on_disabled_color", "foreground_subtle_color", "input_background_color", "input_disabled_color", "input_placeholder_color", "input_text_color", "primary_color", "secondary_color", "success_emphasis_color", "text_default_color", "text_disabled_color"]
|
61
|
+
|
62
|
+
model_config = ConfigDict(
|
63
|
+
populate_by_name=True,
|
64
|
+
validate_assignment=True,
|
65
|
+
protected_namespaces=(),
|
66
|
+
)
|
67
|
+
|
68
|
+
|
69
|
+
def to_str(self) -> str:
|
70
|
+
"""Returns the string representation of the model using alias"""
|
71
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
72
|
+
|
73
|
+
def to_json(self) -> str:
|
74
|
+
"""Returns the JSON representation of the model using alias"""
|
75
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
76
|
+
return json.dumps(self.to_dict())
|
77
|
+
|
78
|
+
@classmethod
|
79
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
80
|
+
"""Create an instance of ProjectBrandingColors from a JSON string"""
|
81
|
+
return cls.from_dict(json.loads(json_str))
|
82
|
+
|
83
|
+
def to_dict(self) -> Dict[str, Any]:
|
84
|
+
"""Return the dictionary representation of the model using alias.
|
85
|
+
|
86
|
+
This has the following differences from calling pydantic's
|
87
|
+
`self.model_dump(by_alias=True)`:
|
88
|
+
|
89
|
+
* `None` is only added to the output dict for nullable fields that
|
90
|
+
were set at model initialization. Other fields with value `None`
|
91
|
+
are ignored.
|
92
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
93
|
+
"""
|
94
|
+
excluded_fields: Set[str] = set([
|
95
|
+
"additional_properties",
|
96
|
+
])
|
97
|
+
|
98
|
+
_dict = self.model_dump(
|
99
|
+
by_alias=True,
|
100
|
+
exclude=excluded_fields,
|
101
|
+
exclude_none=True,
|
102
|
+
)
|
103
|
+
# puts key-value pairs in additional_properties in the top level
|
104
|
+
if self.additional_properties is not None:
|
105
|
+
for _key, _value in self.additional_properties.items():
|
106
|
+
_dict[_key] = _value
|
107
|
+
|
108
|
+
return _dict
|
109
|
+
|
110
|
+
@classmethod
|
111
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
112
|
+
"""Create an instance of ProjectBrandingColors from a dict"""
|
113
|
+
if obj is None:
|
114
|
+
return None
|
115
|
+
|
116
|
+
if not isinstance(obj, dict):
|
117
|
+
return cls.model_validate(obj)
|
118
|
+
|
119
|
+
_obj = cls.model_validate({
|
120
|
+
"accent_default_color": obj.get("accent_default_color"),
|
121
|
+
"accent_disabled_color": obj.get("accent_disabled_color"),
|
122
|
+
"accent_emphasis_color": obj.get("accent_emphasis_color"),
|
123
|
+
"accent_muted_color": obj.get("accent_muted_color"),
|
124
|
+
"accent_subtle_color": obj.get("accent_subtle_color"),
|
125
|
+
"background_canvas_color": obj.get("background_canvas_color"),
|
126
|
+
"background_subtle_color": obj.get("background_subtle_color"),
|
127
|
+
"background_surface_color": obj.get("background_surface_color"),
|
128
|
+
"border_default_color": obj.get("border_default_color"),
|
129
|
+
"error_default_color": obj.get("error_default_color"),
|
130
|
+
"error_emphasis_color": obj.get("error_emphasis_color"),
|
131
|
+
"error_muted_color": obj.get("error_muted_color"),
|
132
|
+
"error_subtle_color": obj.get("error_subtle_color"),
|
133
|
+
"foreground_default_color": obj.get("foreground_default_color"),
|
134
|
+
"foreground_disabled_color": obj.get("foreground_disabled_color"),
|
135
|
+
"foreground_muted_color": obj.get("foreground_muted_color"),
|
136
|
+
"foreground_on_accent_color": obj.get("foreground_on_accent_color"),
|
137
|
+
"foreground_on_dark_color": obj.get("foreground_on_dark_color"),
|
138
|
+
"foreground_on_disabled_color": obj.get("foreground_on_disabled_color"),
|
139
|
+
"foreground_subtle_color": obj.get("foreground_subtle_color"),
|
140
|
+
"input_background_color": obj.get("input_background_color"),
|
141
|
+
"input_disabled_color": obj.get("input_disabled_color"),
|
142
|
+
"input_placeholder_color": obj.get("input_placeholder_color"),
|
143
|
+
"input_text_color": obj.get("input_text_color"),
|
144
|
+
"primary_color": obj.get("primary_color"),
|
145
|
+
"secondary_color": obj.get("secondary_color"),
|
146
|
+
"success_emphasis_color": obj.get("success_emphasis_color"),
|
147
|
+
"text_default_color": obj.get("text_default_color"),
|
148
|
+
"text_disabled_color": obj.get("text_disabled_color")
|
149
|
+
})
|
150
|
+
# store additional fields in additional_properties
|
151
|
+
for _key in obj.keys():
|
152
|
+
if _key not in cls.__properties:
|
153
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
154
|
+
|
155
|
+
return _obj
|
156
|
+
|
157
|
+
|
@@ -0,0 +1,182 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
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 ProjectBrandingTheme(BaseModel):
|
28
|
+
"""
|
29
|
+
ProjectBrandingTheme
|
30
|
+
""" # noqa: E501
|
31
|
+
accent_default_color: Optional[StrictStr] = Field(default=None, description="AccentDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
32
|
+
accent_disabled_color: Optional[StrictStr] = Field(default=None, description="AccentDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
33
|
+
accent_emphasis_color: Optional[StrictStr] = Field(default=None, description="AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
34
|
+
accent_muted_color: Optional[StrictStr] = Field(default=None, description="AccentMutedColor is a hex color code used by the Ory Account Experience theme.")
|
35
|
+
accent_subtle_color: Optional[StrictStr] = Field(default=None, description="AccentSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
36
|
+
background_canvas_color: Optional[StrictStr] = Field(default=None, description="BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.")
|
37
|
+
background_subtle_color: Optional[StrictStr] = Field(default=None, description="BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
38
|
+
background_surface_color: Optional[StrictStr] = Field(default=None, description="BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.")
|
39
|
+
border_default_color: Optional[StrictStr] = Field(default=None, description="BorderDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
40
|
+
created_at: datetime = Field(description="The Customization Creation Date.")
|
41
|
+
error_default_color: Optional[StrictStr] = Field(default=None, description="ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
42
|
+
error_emphasis_color: Optional[StrictStr] = Field(default=None, description="ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
43
|
+
error_muted_color: Optional[StrictStr] = Field(default=None, description="ErrorMutedColor is a hex color code used by the Ory Account Experience theme.")
|
44
|
+
error_subtle_color: Optional[StrictStr] = Field(default=None, description="ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
45
|
+
favicon_type: Optional[StrictStr] = Field(default=None, description="Favicon Type The Favicon mime type.")
|
46
|
+
favicon_url: Optional[StrictStr] = Field(default=None, description="Favicon URL Favicon can be an https:// or base64:// URL. If the URL is not allowed, the favicon will be stored inside the Ory Network storage bucket.")
|
47
|
+
foreground_default_color: Optional[StrictStr] = Field(default=None, description="ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
48
|
+
foreground_disabled_color: Optional[StrictStr] = Field(default=None, description="ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
49
|
+
foreground_muted_color: Optional[StrictStr] = Field(default=None, description="ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.")
|
50
|
+
foreground_on_accent_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.")
|
51
|
+
foreground_on_dark_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.")
|
52
|
+
foreground_on_disabled_color: Optional[StrictStr] = Field(default=None, description="ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
53
|
+
foreground_subtle_color: Optional[StrictStr] = Field(default=None, description="ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.")
|
54
|
+
id: StrictStr = Field(description="The customization theme ID.")
|
55
|
+
input_background_color: Optional[StrictStr] = Field(default=None, description="InputBackgroundColor is a hex color code used by the Ory Account Experience theme.")
|
56
|
+
input_disabled_color: Optional[StrictStr] = Field(default=None, description="InputDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
57
|
+
input_placeholder_color: Optional[StrictStr] = Field(default=None, description="InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.")
|
58
|
+
input_text_color: Optional[StrictStr] = Field(default=None, description="InputTextColor is a hex color code used by the Ory Account Experience theme.")
|
59
|
+
logo_type: Optional[StrictStr] = Field(default=None, description="Logo Type The Logo mime type.")
|
60
|
+
logo_url: Optional[StrictStr] = Field(default=None, description="Logo URL Logo can be an https:// or base64:// URL. If the URL is not allowed, the logo will be stored inside the Ory Network storage bucket.")
|
61
|
+
name: StrictStr = Field(description="The customization theme name.")
|
62
|
+
primary_color: Optional[StrictStr] = Field(default=None, description="Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.")
|
63
|
+
project_branding_id: StrictStr = Field(description="The ProjectBranding ID this customization is associated with.")
|
64
|
+
secondary_color: Optional[StrictStr] = Field(default=None, description="Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.")
|
65
|
+
success_emphasis_color: Optional[StrictStr] = Field(default=None, description="SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.")
|
66
|
+
text_default_color: Optional[StrictStr] = Field(default=None, description="TextDefaultColor is a hex color code used by the Ory Account Experience theme.")
|
67
|
+
text_disabled_color: Optional[StrictStr] = Field(default=None, description="TextDisabledColor is a hex color code used by the Ory Account Experience theme.")
|
68
|
+
updated_at: datetime = Field(description="Last Time Branding was Updated.")
|
69
|
+
additional_properties: Dict[str, Any] = {}
|
70
|
+
__properties: ClassVar[List[str]] = ["accent_default_color", "accent_disabled_color", "accent_emphasis_color", "accent_muted_color", "accent_subtle_color", "background_canvas_color", "background_subtle_color", "background_surface_color", "border_default_color", "created_at", "error_default_color", "error_emphasis_color", "error_muted_color", "error_subtle_color", "favicon_type", "favicon_url", "foreground_default_color", "foreground_disabled_color", "foreground_muted_color", "foreground_on_accent_color", "foreground_on_dark_color", "foreground_on_disabled_color", "foreground_subtle_color", "id", "input_background_color", "input_disabled_color", "input_placeholder_color", "input_text_color", "logo_type", "logo_url", "name", "primary_color", "project_branding_id", "secondary_color", "success_emphasis_color", "text_default_color", "text_disabled_color", "updated_at"]
|
71
|
+
|
72
|
+
model_config = ConfigDict(
|
73
|
+
populate_by_name=True,
|
74
|
+
validate_assignment=True,
|
75
|
+
protected_namespaces=(),
|
76
|
+
)
|
77
|
+
|
78
|
+
|
79
|
+
def to_str(self) -> str:
|
80
|
+
"""Returns the string representation of the model using alias"""
|
81
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
82
|
+
|
83
|
+
def to_json(self) -> str:
|
84
|
+
"""Returns the JSON representation of the model using alias"""
|
85
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
86
|
+
return json.dumps(self.to_dict())
|
87
|
+
|
88
|
+
@classmethod
|
89
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
90
|
+
"""Create an instance of ProjectBrandingTheme from a JSON string"""
|
91
|
+
return cls.from_dict(json.loads(json_str))
|
92
|
+
|
93
|
+
def to_dict(self) -> Dict[str, Any]:
|
94
|
+
"""Return the dictionary representation of the model using alias.
|
95
|
+
|
96
|
+
This has the following differences from calling pydantic's
|
97
|
+
`self.model_dump(by_alias=True)`:
|
98
|
+
|
99
|
+
* `None` is only added to the output dict for nullable fields that
|
100
|
+
were set at model initialization. Other fields with value `None`
|
101
|
+
are ignored.
|
102
|
+
* OpenAPI `readOnly` fields are excluded.
|
103
|
+
* OpenAPI `readOnly` fields are excluded.
|
104
|
+
* OpenAPI `readOnly` fields are excluded.
|
105
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
106
|
+
"""
|
107
|
+
excluded_fields: Set[str] = set([
|
108
|
+
"created_at",
|
109
|
+
"id",
|
110
|
+
"updated_at",
|
111
|
+
"additional_properties",
|
112
|
+
])
|
113
|
+
|
114
|
+
_dict = self.model_dump(
|
115
|
+
by_alias=True,
|
116
|
+
exclude=excluded_fields,
|
117
|
+
exclude_none=True,
|
118
|
+
)
|
119
|
+
# puts key-value pairs in additional_properties in the top level
|
120
|
+
if self.additional_properties is not None:
|
121
|
+
for _key, _value in self.additional_properties.items():
|
122
|
+
_dict[_key] = _value
|
123
|
+
|
124
|
+
return _dict
|
125
|
+
|
126
|
+
@classmethod
|
127
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
128
|
+
"""Create an instance of ProjectBrandingTheme from a dict"""
|
129
|
+
if obj is None:
|
130
|
+
return None
|
131
|
+
|
132
|
+
if not isinstance(obj, dict):
|
133
|
+
return cls.model_validate(obj)
|
134
|
+
|
135
|
+
_obj = cls.model_validate({
|
136
|
+
"accent_default_color": obj.get("accent_default_color"),
|
137
|
+
"accent_disabled_color": obj.get("accent_disabled_color"),
|
138
|
+
"accent_emphasis_color": obj.get("accent_emphasis_color"),
|
139
|
+
"accent_muted_color": obj.get("accent_muted_color"),
|
140
|
+
"accent_subtle_color": obj.get("accent_subtle_color"),
|
141
|
+
"background_canvas_color": obj.get("background_canvas_color"),
|
142
|
+
"background_subtle_color": obj.get("background_subtle_color"),
|
143
|
+
"background_surface_color": obj.get("background_surface_color"),
|
144
|
+
"border_default_color": obj.get("border_default_color"),
|
145
|
+
"created_at": obj.get("created_at"),
|
146
|
+
"error_default_color": obj.get("error_default_color"),
|
147
|
+
"error_emphasis_color": obj.get("error_emphasis_color"),
|
148
|
+
"error_muted_color": obj.get("error_muted_color"),
|
149
|
+
"error_subtle_color": obj.get("error_subtle_color"),
|
150
|
+
"favicon_type": obj.get("favicon_type"),
|
151
|
+
"favicon_url": obj.get("favicon_url"),
|
152
|
+
"foreground_default_color": obj.get("foreground_default_color"),
|
153
|
+
"foreground_disabled_color": obj.get("foreground_disabled_color"),
|
154
|
+
"foreground_muted_color": obj.get("foreground_muted_color"),
|
155
|
+
"foreground_on_accent_color": obj.get("foreground_on_accent_color"),
|
156
|
+
"foreground_on_dark_color": obj.get("foreground_on_dark_color"),
|
157
|
+
"foreground_on_disabled_color": obj.get("foreground_on_disabled_color"),
|
158
|
+
"foreground_subtle_color": obj.get("foreground_subtle_color"),
|
159
|
+
"id": obj.get("id"),
|
160
|
+
"input_background_color": obj.get("input_background_color"),
|
161
|
+
"input_disabled_color": obj.get("input_disabled_color"),
|
162
|
+
"input_placeholder_color": obj.get("input_placeholder_color"),
|
163
|
+
"input_text_color": obj.get("input_text_color"),
|
164
|
+
"logo_type": obj.get("logo_type"),
|
165
|
+
"logo_url": obj.get("logo_url"),
|
166
|
+
"name": obj.get("name"),
|
167
|
+
"primary_color": obj.get("primary_color"),
|
168
|
+
"project_branding_id": obj.get("project_branding_id"),
|
169
|
+
"secondary_color": obj.get("secondary_color"),
|
170
|
+
"success_emphasis_color": obj.get("success_emphasis_color"),
|
171
|
+
"text_default_color": obj.get("text_default_color"),
|
172
|
+
"text_disabled_color": obj.get("text_disabled_color"),
|
173
|
+
"updated_at": obj.get("updated_at")
|
174
|
+
})
|
175
|
+
# store additional fields in additional_properties
|
176
|
+
for _key in obj.keys():
|
177
|
+
if _key not in cls.__properties:
|
178
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
179
|
+
|
180
|
+
return _obj
|
181
|
+
|
182
|
+
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
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 pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class ProjectCors(BaseModel):
|
27
|
+
"""
|
28
|
+
ProjectCors
|
29
|
+
""" # noqa: E501
|
30
|
+
enabled: Optional[StrictBool] = Field(default=None, description="Whether CORS is enabled for this endpoint.")
|
31
|
+
origins: Optional[List[StrictStr]] = Field(default=None, description="The allowed origins. Use `*` to allow all origins. A wildcard can also be used in the subdomain, i.e. `https://*.example.com` will allow all origins on all subdomains of `example.com`.")
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
33
|
+
__properties: ClassVar[List[str]] = ["enabled", "origins"]
|
34
|
+
|
35
|
+
model_config = ConfigDict(
|
36
|
+
populate_by_name=True,
|
37
|
+
validate_assignment=True,
|
38
|
+
protected_namespaces=(),
|
39
|
+
)
|
40
|
+
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
49
|
+
return json.dumps(self.to_dict())
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
53
|
+
"""Create an instance of ProjectCors from a JSON string"""
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
55
|
+
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
58
|
+
|
59
|
+
This has the following differences from calling pydantic's
|
60
|
+
`self.model_dump(by_alias=True)`:
|
61
|
+
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
63
|
+
were set at model initialization. Other fields with value `None`
|
64
|
+
are ignored.
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
66
|
+
"""
|
67
|
+
excluded_fields: Set[str] = set([
|
68
|
+
"additional_properties",
|
69
|
+
])
|
70
|
+
|
71
|
+
_dict = self.model_dump(
|
72
|
+
by_alias=True,
|
73
|
+
exclude=excluded_fields,
|
74
|
+
exclude_none=True,
|
75
|
+
)
|
76
|
+
# puts key-value pairs in additional_properties in the top level
|
77
|
+
if self.additional_properties is not None:
|
78
|
+
for _key, _value in self.additional_properties.items():
|
79
|
+
_dict[_key] = _value
|
80
|
+
|
81
|
+
return _dict
|
82
|
+
|
83
|
+
@classmethod
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
85
|
+
"""Create an instance of ProjectCors from a dict"""
|
86
|
+
if obj is None:
|
87
|
+
return None
|
88
|
+
|
89
|
+
if not isinstance(obj, dict):
|
90
|
+
return cls.model_validate(obj)
|
91
|
+
|
92
|
+
_obj = cls.model_validate({
|
93
|
+
"enabled": obj.get("enabled"),
|
94
|
+
"origins": obj.get("origins")
|
95
|
+
})
|
96
|
+
# store additional fields in additional_properties
|
97
|
+
for _key in obj.keys():
|
98
|
+
if _key not in cls.__properties:
|
99
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
100
|
+
|
101
|
+
return _obj
|
102
|
+
|
103
|
+
|