ory-client 1.9.0__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.9.0.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 -1119
- 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 -1105
- 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 -316
- 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 -328
- 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.9.0.dist-info/RECORD +0 -310
- {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/LICENSE +0 -0
- {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/WHEEL +0 -0
- {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,270 @@
|
|
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, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing_extensions import Annotated
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class OAuth2ClientTokenLifespans(BaseModel):
|
28
|
+
"""
|
29
|
+
Lifespans of different token types issued for this OAuth 2.0 Client.
|
30
|
+
""" # noqa: E501
|
31
|
+
authorization_code_grant_access_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
32
|
+
authorization_code_grant_id_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
33
|
+
authorization_code_grant_refresh_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
34
|
+
client_credentials_grant_access_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
35
|
+
implicit_grant_access_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
36
|
+
implicit_grant_id_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
37
|
+
jwt_bearer_grant_access_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
38
|
+
refresh_token_grant_access_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
39
|
+
refresh_token_grant_id_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
40
|
+
refresh_token_grant_refresh_token_lifespan: Optional[Annotated[str, Field(strict=True)]] = None
|
41
|
+
additional_properties: Dict[str, Any] = {}
|
42
|
+
__properties: ClassVar[List[str]] = ["authorization_code_grant_access_token_lifespan", "authorization_code_grant_id_token_lifespan", "authorization_code_grant_refresh_token_lifespan", "client_credentials_grant_access_token_lifespan", "implicit_grant_access_token_lifespan", "implicit_grant_id_token_lifespan", "jwt_bearer_grant_access_token_lifespan", "refresh_token_grant_access_token_lifespan", "refresh_token_grant_id_token_lifespan", "refresh_token_grant_refresh_token_lifespan"]
|
43
|
+
|
44
|
+
@field_validator('authorization_code_grant_access_token_lifespan')
|
45
|
+
def authorization_code_grant_access_token_lifespan_validate_regular_expression(cls, value):
|
46
|
+
"""Validates the regular expression"""
|
47
|
+
if value is None:
|
48
|
+
return value
|
49
|
+
|
50
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
51
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
52
|
+
return value
|
53
|
+
|
54
|
+
@field_validator('authorization_code_grant_id_token_lifespan')
|
55
|
+
def authorization_code_grant_id_token_lifespan_validate_regular_expression(cls, value):
|
56
|
+
"""Validates the regular expression"""
|
57
|
+
if value is None:
|
58
|
+
return value
|
59
|
+
|
60
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
61
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
62
|
+
return value
|
63
|
+
|
64
|
+
@field_validator('authorization_code_grant_refresh_token_lifespan')
|
65
|
+
def authorization_code_grant_refresh_token_lifespan_validate_regular_expression(cls, value):
|
66
|
+
"""Validates the regular expression"""
|
67
|
+
if value is None:
|
68
|
+
return value
|
69
|
+
|
70
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
71
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
72
|
+
return value
|
73
|
+
|
74
|
+
@field_validator('client_credentials_grant_access_token_lifespan')
|
75
|
+
def client_credentials_grant_access_token_lifespan_validate_regular_expression(cls, value):
|
76
|
+
"""Validates the regular expression"""
|
77
|
+
if value is None:
|
78
|
+
return value
|
79
|
+
|
80
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
81
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
82
|
+
return value
|
83
|
+
|
84
|
+
@field_validator('implicit_grant_access_token_lifespan')
|
85
|
+
def implicit_grant_access_token_lifespan_validate_regular_expression(cls, value):
|
86
|
+
"""Validates the regular expression"""
|
87
|
+
if value is None:
|
88
|
+
return value
|
89
|
+
|
90
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
91
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
92
|
+
return value
|
93
|
+
|
94
|
+
@field_validator('implicit_grant_id_token_lifespan')
|
95
|
+
def implicit_grant_id_token_lifespan_validate_regular_expression(cls, value):
|
96
|
+
"""Validates the regular expression"""
|
97
|
+
if value is None:
|
98
|
+
return value
|
99
|
+
|
100
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
101
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
102
|
+
return value
|
103
|
+
|
104
|
+
@field_validator('jwt_bearer_grant_access_token_lifespan')
|
105
|
+
def jwt_bearer_grant_access_token_lifespan_validate_regular_expression(cls, value):
|
106
|
+
"""Validates the regular expression"""
|
107
|
+
if value is None:
|
108
|
+
return value
|
109
|
+
|
110
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
111
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
112
|
+
return value
|
113
|
+
|
114
|
+
@field_validator('refresh_token_grant_access_token_lifespan')
|
115
|
+
def refresh_token_grant_access_token_lifespan_validate_regular_expression(cls, value):
|
116
|
+
"""Validates the regular expression"""
|
117
|
+
if value is None:
|
118
|
+
return value
|
119
|
+
|
120
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
121
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
122
|
+
return value
|
123
|
+
|
124
|
+
@field_validator('refresh_token_grant_id_token_lifespan')
|
125
|
+
def refresh_token_grant_id_token_lifespan_validate_regular_expression(cls, value):
|
126
|
+
"""Validates the regular expression"""
|
127
|
+
if value is None:
|
128
|
+
return value
|
129
|
+
|
130
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
131
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
132
|
+
return value
|
133
|
+
|
134
|
+
@field_validator('refresh_token_grant_refresh_token_lifespan')
|
135
|
+
def refresh_token_grant_refresh_token_lifespan_validate_regular_expression(cls, value):
|
136
|
+
"""Validates the regular expression"""
|
137
|
+
if value is None:
|
138
|
+
return value
|
139
|
+
|
140
|
+
if not re.match(r"^[0-9]+(ns|us|ms|s|m|h)$", value):
|
141
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+(ns|us|ms|s|m|h)$/")
|
142
|
+
return value
|
143
|
+
|
144
|
+
model_config = ConfigDict(
|
145
|
+
populate_by_name=True,
|
146
|
+
validate_assignment=True,
|
147
|
+
protected_namespaces=(),
|
148
|
+
)
|
149
|
+
|
150
|
+
|
151
|
+
def to_str(self) -> str:
|
152
|
+
"""Returns the string representation of the model using alias"""
|
153
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
154
|
+
|
155
|
+
def to_json(self) -> str:
|
156
|
+
"""Returns the JSON representation of the model using alias"""
|
157
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
158
|
+
return json.dumps(self.to_dict())
|
159
|
+
|
160
|
+
@classmethod
|
161
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
162
|
+
"""Create an instance of OAuth2ClientTokenLifespans from a JSON string"""
|
163
|
+
return cls.from_dict(json.loads(json_str))
|
164
|
+
|
165
|
+
def to_dict(self) -> Dict[str, Any]:
|
166
|
+
"""Return the dictionary representation of the model using alias.
|
167
|
+
|
168
|
+
This has the following differences from calling pydantic's
|
169
|
+
`self.model_dump(by_alias=True)`:
|
170
|
+
|
171
|
+
* `None` is only added to the output dict for nullable fields that
|
172
|
+
were set at model initialization. Other fields with value `None`
|
173
|
+
are ignored.
|
174
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
175
|
+
"""
|
176
|
+
excluded_fields: Set[str] = set([
|
177
|
+
"additional_properties",
|
178
|
+
])
|
179
|
+
|
180
|
+
_dict = self.model_dump(
|
181
|
+
by_alias=True,
|
182
|
+
exclude=excluded_fields,
|
183
|
+
exclude_none=True,
|
184
|
+
)
|
185
|
+
# puts key-value pairs in additional_properties in the top level
|
186
|
+
if self.additional_properties is not None:
|
187
|
+
for _key, _value in self.additional_properties.items():
|
188
|
+
_dict[_key] = _value
|
189
|
+
|
190
|
+
# set to None if authorization_code_grant_access_token_lifespan (nullable) is None
|
191
|
+
# and model_fields_set contains the field
|
192
|
+
if self.authorization_code_grant_access_token_lifespan is None and "authorization_code_grant_access_token_lifespan" in self.model_fields_set:
|
193
|
+
_dict['authorization_code_grant_access_token_lifespan'] = None
|
194
|
+
|
195
|
+
# set to None if authorization_code_grant_id_token_lifespan (nullable) is None
|
196
|
+
# and model_fields_set contains the field
|
197
|
+
if self.authorization_code_grant_id_token_lifespan is None and "authorization_code_grant_id_token_lifespan" in self.model_fields_set:
|
198
|
+
_dict['authorization_code_grant_id_token_lifespan'] = None
|
199
|
+
|
200
|
+
# set to None if authorization_code_grant_refresh_token_lifespan (nullable) is None
|
201
|
+
# and model_fields_set contains the field
|
202
|
+
if self.authorization_code_grant_refresh_token_lifespan is None and "authorization_code_grant_refresh_token_lifespan" in self.model_fields_set:
|
203
|
+
_dict['authorization_code_grant_refresh_token_lifespan'] = None
|
204
|
+
|
205
|
+
# set to None if client_credentials_grant_access_token_lifespan (nullable) is None
|
206
|
+
# and model_fields_set contains the field
|
207
|
+
if self.client_credentials_grant_access_token_lifespan is None and "client_credentials_grant_access_token_lifespan" in self.model_fields_set:
|
208
|
+
_dict['client_credentials_grant_access_token_lifespan'] = None
|
209
|
+
|
210
|
+
# set to None if implicit_grant_access_token_lifespan (nullable) is None
|
211
|
+
# and model_fields_set contains the field
|
212
|
+
if self.implicit_grant_access_token_lifespan is None and "implicit_grant_access_token_lifespan" in self.model_fields_set:
|
213
|
+
_dict['implicit_grant_access_token_lifespan'] = None
|
214
|
+
|
215
|
+
# set to None if implicit_grant_id_token_lifespan (nullable) is None
|
216
|
+
# and model_fields_set contains the field
|
217
|
+
if self.implicit_grant_id_token_lifespan is None and "implicit_grant_id_token_lifespan" in self.model_fields_set:
|
218
|
+
_dict['implicit_grant_id_token_lifespan'] = None
|
219
|
+
|
220
|
+
# set to None if jwt_bearer_grant_access_token_lifespan (nullable) is None
|
221
|
+
# and model_fields_set contains the field
|
222
|
+
if self.jwt_bearer_grant_access_token_lifespan is None and "jwt_bearer_grant_access_token_lifespan" in self.model_fields_set:
|
223
|
+
_dict['jwt_bearer_grant_access_token_lifespan'] = None
|
224
|
+
|
225
|
+
# set to None if refresh_token_grant_access_token_lifespan (nullable) is None
|
226
|
+
# and model_fields_set contains the field
|
227
|
+
if self.refresh_token_grant_access_token_lifespan is None and "refresh_token_grant_access_token_lifespan" in self.model_fields_set:
|
228
|
+
_dict['refresh_token_grant_access_token_lifespan'] = None
|
229
|
+
|
230
|
+
# set to None if refresh_token_grant_id_token_lifespan (nullable) is None
|
231
|
+
# and model_fields_set contains the field
|
232
|
+
if self.refresh_token_grant_id_token_lifespan is None and "refresh_token_grant_id_token_lifespan" in self.model_fields_set:
|
233
|
+
_dict['refresh_token_grant_id_token_lifespan'] = None
|
234
|
+
|
235
|
+
# set to None if refresh_token_grant_refresh_token_lifespan (nullable) is None
|
236
|
+
# and model_fields_set contains the field
|
237
|
+
if self.refresh_token_grant_refresh_token_lifespan is None and "refresh_token_grant_refresh_token_lifespan" in self.model_fields_set:
|
238
|
+
_dict['refresh_token_grant_refresh_token_lifespan'] = None
|
239
|
+
|
240
|
+
return _dict
|
241
|
+
|
242
|
+
@classmethod
|
243
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
244
|
+
"""Create an instance of OAuth2ClientTokenLifespans from a dict"""
|
245
|
+
if obj is None:
|
246
|
+
return None
|
247
|
+
|
248
|
+
if not isinstance(obj, dict):
|
249
|
+
return cls.model_validate(obj)
|
250
|
+
|
251
|
+
_obj = cls.model_validate({
|
252
|
+
"authorization_code_grant_access_token_lifespan": obj.get("authorization_code_grant_access_token_lifespan"),
|
253
|
+
"authorization_code_grant_id_token_lifespan": obj.get("authorization_code_grant_id_token_lifespan"),
|
254
|
+
"authorization_code_grant_refresh_token_lifespan": obj.get("authorization_code_grant_refresh_token_lifespan"),
|
255
|
+
"client_credentials_grant_access_token_lifespan": obj.get("client_credentials_grant_access_token_lifespan"),
|
256
|
+
"implicit_grant_access_token_lifespan": obj.get("implicit_grant_access_token_lifespan"),
|
257
|
+
"implicit_grant_id_token_lifespan": obj.get("implicit_grant_id_token_lifespan"),
|
258
|
+
"jwt_bearer_grant_access_token_lifespan": obj.get("jwt_bearer_grant_access_token_lifespan"),
|
259
|
+
"refresh_token_grant_access_token_lifespan": obj.get("refresh_token_grant_access_token_lifespan"),
|
260
|
+
"refresh_token_grant_id_token_lifespan": obj.get("refresh_token_grant_id_token_lifespan"),
|
261
|
+
"refresh_token_grant_refresh_token_lifespan": obj.get("refresh_token_grant_refresh_token_lifespan")
|
262
|
+
})
|
263
|
+
# store additional fields in additional_properties
|
264
|
+
for _key in obj.keys():
|
265
|
+
if _key not in cls.__properties:
|
266
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
267
|
+
|
268
|
+
return _obj
|
269
|
+
|
270
|
+
|
@@ -0,0 +1,133 @@
|
|
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 ory_client.models.o_auth2_client import OAuth2Client
|
24
|
+
from ory_client.models.o_auth2_consent_request_open_id_connect_context import OAuth2ConsentRequestOpenIDConnectContext
|
25
|
+
from typing import Optional, Set
|
26
|
+
from typing_extensions import Self
|
27
|
+
|
28
|
+
class OAuth2ConsentRequest(BaseModel):
|
29
|
+
"""
|
30
|
+
OAuth2ConsentRequest
|
31
|
+
""" # noqa: E501
|
32
|
+
acr: Optional[StrictStr] = Field(default=None, description="ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.")
|
33
|
+
amr: Optional[List[StrictStr]] = None
|
34
|
+
challenge: StrictStr = Field(description="ID is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session.")
|
35
|
+
client: Optional[OAuth2Client] = None
|
36
|
+
context: Optional[Dict[str, Any]] = None
|
37
|
+
login_challenge: Optional[StrictStr] = Field(default=None, description="LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app.")
|
38
|
+
login_session_id: Optional[StrictStr] = Field(default=None, description="LoginSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.")
|
39
|
+
oidc_context: Optional[OAuth2ConsentRequestOpenIDConnectContext] = None
|
40
|
+
request_url: Optional[StrictStr] = Field(default=None, description="RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.")
|
41
|
+
requested_access_token_audience: Optional[List[StrictStr]] = None
|
42
|
+
requested_scope: Optional[List[StrictStr]] = None
|
43
|
+
skip: Optional[StrictBool] = Field(default=None, description="Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the consent request using the usual API call.")
|
44
|
+
subject: Optional[StrictStr] = Field(default=None, description="Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client.")
|
45
|
+
additional_properties: Dict[str, Any] = {}
|
46
|
+
__properties: ClassVar[List[str]] = ["acr", "amr", "challenge", "client", "context", "login_challenge", "login_session_id", "oidc_context", "request_url", "requested_access_token_audience", "requested_scope", "skip", "subject"]
|
47
|
+
|
48
|
+
model_config = ConfigDict(
|
49
|
+
populate_by_name=True,
|
50
|
+
validate_assignment=True,
|
51
|
+
protected_namespaces=(),
|
52
|
+
)
|
53
|
+
|
54
|
+
|
55
|
+
def to_str(self) -> str:
|
56
|
+
"""Returns the string representation of the model using alias"""
|
57
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
58
|
+
|
59
|
+
def to_json(self) -> str:
|
60
|
+
"""Returns the JSON representation of the model using alias"""
|
61
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
62
|
+
return json.dumps(self.to_dict())
|
63
|
+
|
64
|
+
@classmethod
|
65
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
66
|
+
"""Create an instance of OAuth2ConsentRequest from a JSON string"""
|
67
|
+
return cls.from_dict(json.loads(json_str))
|
68
|
+
|
69
|
+
def to_dict(self) -> Dict[str, Any]:
|
70
|
+
"""Return the dictionary representation of the model using alias.
|
71
|
+
|
72
|
+
This has the following differences from calling pydantic's
|
73
|
+
`self.model_dump(by_alias=True)`:
|
74
|
+
|
75
|
+
* `None` is only added to the output dict for nullable fields that
|
76
|
+
were set at model initialization. Other fields with value `None`
|
77
|
+
are ignored.
|
78
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
79
|
+
"""
|
80
|
+
excluded_fields: Set[str] = set([
|
81
|
+
"additional_properties",
|
82
|
+
])
|
83
|
+
|
84
|
+
_dict = self.model_dump(
|
85
|
+
by_alias=True,
|
86
|
+
exclude=excluded_fields,
|
87
|
+
exclude_none=True,
|
88
|
+
)
|
89
|
+
# override the default output from pydantic by calling `to_dict()` of client
|
90
|
+
if self.client:
|
91
|
+
_dict['client'] = self.client.to_dict()
|
92
|
+
# override the default output from pydantic by calling `to_dict()` of oidc_context
|
93
|
+
if self.oidc_context:
|
94
|
+
_dict['oidc_context'] = self.oidc_context.to_dict()
|
95
|
+
# puts key-value pairs in additional_properties in the top level
|
96
|
+
if self.additional_properties is not None:
|
97
|
+
for _key, _value in self.additional_properties.items():
|
98
|
+
_dict[_key] = _value
|
99
|
+
|
100
|
+
return _dict
|
101
|
+
|
102
|
+
@classmethod
|
103
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
104
|
+
"""Create an instance of OAuth2ConsentRequest from a dict"""
|
105
|
+
if obj is None:
|
106
|
+
return None
|
107
|
+
|
108
|
+
if not isinstance(obj, dict):
|
109
|
+
return cls.model_validate(obj)
|
110
|
+
|
111
|
+
_obj = cls.model_validate({
|
112
|
+
"acr": obj.get("acr"),
|
113
|
+
"amr": obj.get("amr"),
|
114
|
+
"challenge": obj.get("challenge"),
|
115
|
+
"client": OAuth2Client.from_dict(obj["client"]) if obj.get("client") is not None else None,
|
116
|
+
"context": obj.get("context"),
|
117
|
+
"login_challenge": obj.get("login_challenge"),
|
118
|
+
"login_session_id": obj.get("login_session_id"),
|
119
|
+
"oidc_context": OAuth2ConsentRequestOpenIDConnectContext.from_dict(obj["oidc_context"]) if obj.get("oidc_context") is not None else None,
|
120
|
+
"request_url": obj.get("request_url"),
|
121
|
+
"requested_access_token_audience": obj.get("requested_access_token_audience"),
|
122
|
+
"requested_scope": obj.get("requested_scope"),
|
123
|
+
"skip": obj.get("skip"),
|
124
|
+
"subject": obj.get("subject")
|
125
|
+
})
|
126
|
+
# store additional fields in additional_properties
|
127
|
+
for _key in obj.keys():
|
128
|
+
if _key not in cls.__properties:
|
129
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
130
|
+
|
131
|
+
return _obj
|
132
|
+
|
133
|
+
|
@@ -0,0 +1,109 @@
|
|
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 OAuth2ConsentRequestOpenIDConnectContext(BaseModel):
|
27
|
+
"""
|
28
|
+
OAuth2ConsentRequestOpenIDConnectContext
|
29
|
+
""" # noqa: E501
|
30
|
+
acr_values: Optional[List[StrictStr]] = Field(default=None, description="ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. OpenID Connect defines it as follows: > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter.")
|
31
|
+
display: Optional[StrictStr] = Field(default=None, description="Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. The defined values are: page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display. The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display.")
|
32
|
+
id_token_hint_claims: Optional[Dict[str, Any]] = Field(default=None, description="IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client.")
|
33
|
+
login_hint: Optional[StrictStr] = Field(default=None, description="LoginHint hints about the login identifier the End-User might use to log in (if necessary). This hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier) and then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a phone number in the format specified for the phone_number Claim. The use of this parameter is optional.")
|
34
|
+
ui_locales: Optional[List[StrictStr]] = Field(default=None, description="UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested locales are not supported by the OpenID Provider.")
|
35
|
+
additional_properties: Dict[str, Any] = {}
|
36
|
+
__properties: ClassVar[List[str]] = ["acr_values", "display", "id_token_hint_claims", "login_hint", "ui_locales"]
|
37
|
+
|
38
|
+
model_config = ConfigDict(
|
39
|
+
populate_by_name=True,
|
40
|
+
validate_assignment=True,
|
41
|
+
protected_namespaces=(),
|
42
|
+
)
|
43
|
+
|
44
|
+
|
45
|
+
def to_str(self) -> str:
|
46
|
+
"""Returns the string representation of the model using alias"""
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
48
|
+
|
49
|
+
def to_json(self) -> str:
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
52
|
+
return json.dumps(self.to_dict())
|
53
|
+
|
54
|
+
@classmethod
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
56
|
+
"""Create an instance of OAuth2ConsentRequestOpenIDConnectContext from a JSON string"""
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
58
|
+
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
61
|
+
|
62
|
+
This has the following differences from calling pydantic's
|
63
|
+
`self.model_dump(by_alias=True)`:
|
64
|
+
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
66
|
+
were set at model initialization. Other fields with value `None`
|
67
|
+
are ignored.
|
68
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
69
|
+
"""
|
70
|
+
excluded_fields: Set[str] = set([
|
71
|
+
"additional_properties",
|
72
|
+
])
|
73
|
+
|
74
|
+
_dict = self.model_dump(
|
75
|
+
by_alias=True,
|
76
|
+
exclude=excluded_fields,
|
77
|
+
exclude_none=True,
|
78
|
+
)
|
79
|
+
# puts key-value pairs in additional_properties in the top level
|
80
|
+
if self.additional_properties is not None:
|
81
|
+
for _key, _value in self.additional_properties.items():
|
82
|
+
_dict[_key] = _value
|
83
|
+
|
84
|
+
return _dict
|
85
|
+
|
86
|
+
@classmethod
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
88
|
+
"""Create an instance of OAuth2ConsentRequestOpenIDConnectContext from a dict"""
|
89
|
+
if obj is None:
|
90
|
+
return None
|
91
|
+
|
92
|
+
if not isinstance(obj, dict):
|
93
|
+
return cls.model_validate(obj)
|
94
|
+
|
95
|
+
_obj = cls.model_validate({
|
96
|
+
"acr_values": obj.get("acr_values"),
|
97
|
+
"display": obj.get("display"),
|
98
|
+
"id_token_hint_claims": obj.get("id_token_hint_claims"),
|
99
|
+
"login_hint": obj.get("login_hint"),
|
100
|
+
"ui_locales": obj.get("ui_locales")
|
101
|
+
})
|
102
|
+
# store additional fields in additional_properties
|
103
|
+
for _key in obj.keys():
|
104
|
+
if _key not in cls.__properties:
|
105
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
106
|
+
|
107
|
+
return _obj
|
108
|
+
|
109
|
+
|
@@ -0,0 +1,130 @@
|
|
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, StrictBool, StrictInt, StrictStr
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
24
|
+
from ory_client.models.accept_o_auth2_consent_request_session import AcceptOAuth2ConsentRequestSession
|
25
|
+
from ory_client.models.o_auth2_consent_request import OAuth2ConsentRequest
|
26
|
+
from ory_client.models.o_auth2_consent_session_expires_at import OAuth2ConsentSessionExpiresAt
|
27
|
+
from typing import Optional, Set
|
28
|
+
from typing_extensions import Self
|
29
|
+
|
30
|
+
class OAuth2ConsentSession(BaseModel):
|
31
|
+
"""
|
32
|
+
A completed OAuth 2.0 Consent Session.
|
33
|
+
""" # noqa: E501
|
34
|
+
consent_request: Optional[OAuth2ConsentRequest] = None
|
35
|
+
context: Optional[Dict[str, Any]] = None
|
36
|
+
expires_at: Optional[OAuth2ConsentSessionExpiresAt] = None
|
37
|
+
grant_access_token_audience: Optional[List[StrictStr]] = None
|
38
|
+
grant_scope: Optional[List[StrictStr]] = None
|
39
|
+
handled_at: Optional[datetime] = None
|
40
|
+
remember: Optional[StrictBool] = Field(default=None, description="Remember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.")
|
41
|
+
remember_for: Optional[StrictInt] = Field(default=None, description="Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.")
|
42
|
+
session: Optional[AcceptOAuth2ConsentRequestSession] = None
|
43
|
+
additional_properties: Dict[str, Any] = {}
|
44
|
+
__properties: ClassVar[List[str]] = ["consent_request", "context", "expires_at", "grant_access_token_audience", "grant_scope", "handled_at", "remember", "remember_for", "session"]
|
45
|
+
|
46
|
+
model_config = ConfigDict(
|
47
|
+
populate_by_name=True,
|
48
|
+
validate_assignment=True,
|
49
|
+
protected_namespaces=(),
|
50
|
+
)
|
51
|
+
|
52
|
+
|
53
|
+
def to_str(self) -> str:
|
54
|
+
"""Returns the string representation of the model using alias"""
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
56
|
+
|
57
|
+
def to_json(self) -> str:
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
59
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
60
|
+
return json.dumps(self.to_dict())
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
64
|
+
"""Create an instance of OAuth2ConsentSession from a JSON string"""
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
66
|
+
|
67
|
+
def to_dict(self) -> Dict[str, Any]:
|
68
|
+
"""Return the dictionary representation of the model using alias.
|
69
|
+
|
70
|
+
This has the following differences from calling pydantic's
|
71
|
+
`self.model_dump(by_alias=True)`:
|
72
|
+
|
73
|
+
* `None` is only added to the output dict for nullable fields that
|
74
|
+
were set at model initialization. Other fields with value `None`
|
75
|
+
are ignored.
|
76
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
77
|
+
"""
|
78
|
+
excluded_fields: Set[str] = set([
|
79
|
+
"additional_properties",
|
80
|
+
])
|
81
|
+
|
82
|
+
_dict = self.model_dump(
|
83
|
+
by_alias=True,
|
84
|
+
exclude=excluded_fields,
|
85
|
+
exclude_none=True,
|
86
|
+
)
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of consent_request
|
88
|
+
if self.consent_request:
|
89
|
+
_dict['consent_request'] = self.consent_request.to_dict()
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of expires_at
|
91
|
+
if self.expires_at:
|
92
|
+
_dict['expires_at'] = self.expires_at.to_dict()
|
93
|
+
# override the default output from pydantic by calling `to_dict()` of session
|
94
|
+
if self.session:
|
95
|
+
_dict['session'] = self.session.to_dict()
|
96
|
+
# puts key-value pairs in additional_properties in the top level
|
97
|
+
if self.additional_properties is not None:
|
98
|
+
for _key, _value in self.additional_properties.items():
|
99
|
+
_dict[_key] = _value
|
100
|
+
|
101
|
+
return _dict
|
102
|
+
|
103
|
+
@classmethod
|
104
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
105
|
+
"""Create an instance of OAuth2ConsentSession from a dict"""
|
106
|
+
if obj is None:
|
107
|
+
return None
|
108
|
+
|
109
|
+
if not isinstance(obj, dict):
|
110
|
+
return cls.model_validate(obj)
|
111
|
+
|
112
|
+
_obj = cls.model_validate({
|
113
|
+
"consent_request": OAuth2ConsentRequest.from_dict(obj["consent_request"]) if obj.get("consent_request") is not None else None,
|
114
|
+
"context": obj.get("context"),
|
115
|
+
"expires_at": OAuth2ConsentSessionExpiresAt.from_dict(obj["expires_at"]) if obj.get("expires_at") is not None else None,
|
116
|
+
"grant_access_token_audience": obj.get("grant_access_token_audience"),
|
117
|
+
"grant_scope": obj.get("grant_scope"),
|
118
|
+
"handled_at": obj.get("handled_at"),
|
119
|
+
"remember": obj.get("remember"),
|
120
|
+
"remember_for": obj.get("remember_for"),
|
121
|
+
"session": AcceptOAuth2ConsentRequestSession.from_dict(obj["session"]) if obj.get("session") is not None else None
|
122
|
+
})
|
123
|
+
# store additional fields in additional_properties
|
124
|
+
for _key in obj.keys():
|
125
|
+
if _key not in cls.__properties:
|
126
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
127
|
+
|
128
|
+
return _obj
|
129
|
+
|
130
|
+
|